# $Id: spamcop.t,v 1.6 2003/11/13 15:18:49 lem Exp $ use Test::More; our @msgs = (); { local $/ = "*EOM\n"; push @msgs, ; } our $msg = 0; my $loaded = 0; my $tests = 14 * @msgs; package MyReader; use base 'Mail::Abuse::Reader'; sub read { main::ok(1, "Read message $main::msg"); $_[1]->text(\$main::msgs[$main::msg++]); return 1; } package main; package MyReport; use base 'Mail::Abuse::Report'; sub new { bless {}, ref $_[0] || $_[0] }; package main; plan tests => $tests; SKIP: { eval { use Mail::Abuse::Incident::Normalize; $loaded = 1; }; skip 'Mail::Abuse::Incident::Normalize failed to load (FATAL)', $tests unless $loaded; $loaded = 0; eval { use Mail::Abuse::Incident::SpamCop; $loaded = 1; }; skip 'Mail::Abuse::Incident::SpamCop failed to load (FATAL)', $tests unless $loaded; my $rep = MyReport->new; $rep->reader(MyReader->new); $rep->filters([]); $rep->processors([]); $rep->parsers([new Mail::Abuse::Incident::Normalize, new Mail::Abuse::Incident::SpamCop]); for my $m (@msgs) { isa_ok($rep->next, 'MyReport'); is(@{$rep->incidents}, 1, 'Correct number of incidents reported'); is($rep->incidents->[0]->ip, '10.0.0.1/32', 'Correct target'); is($rep->incidents->[0]->type, 'spam/SpamCop', 'Correct type'); is($rep->incidents->[0]->time, '1056058453', 'Correct date'); ok($rep->incidents->[0]->data =~ m!http://(\w+\.)?spamcop\.net/!, 'Correct data'); } $msg = 0; # Retry all the messages $rep->parsers([new Mail::Abuse::Incident::SpamCop]); for my $m (@msgs) { isa_ok($rep->next, 'MyReport'); is(@{$rep->incidents}, 1, 'Correct number of incidents reported'); is($rep->incidents->[0]->ip, '10.0.0.1/32', 'Correct target'); is($rep->incidents->[0]->type, 'spam/SpamCop', 'Correct type'); is($rep->incidents->[0]->time, '1056058453', 'Correct date'); ok($rep->incidents->[0]->data =~ m!http://(\w+\.)?spamcop\.net/!, 'Correct data'); } } __DATA__ Return-Path: <999999999@bounces.spamcop.net> Received: from sauron.julianhaight.com (sauron.julianhaight.com [216.127.43.85]) by rs26s3.datacenter.cha.somewhere.else (8.12.9/8.12.6/3.0) with SMTP id h5K0Eg4X029360 for ; Thu, 19 Jun 2003 20:14:43 -0400 Received: (qmail 30067 invoked from network); 20 Jun 2003 00:14:32 -0000 Received: from localhost (HELO spamcop.net) (127.0.0.1) by sauron.julianhaight.com with SMTP; 20 Jun 2003 00:14:32 -0000 From: 999999999@reports.spamcop.net To: abuso@somewhere.else Subject: [SpamCop (10.0.0.1) id:999999999]these gals want your [0cK! Precedence: list Message-Id: <999999999@admin.spamcop.net> Date: Thu, 19 Jun 2003 17:34:13 -0400 X-Spamcop-Sourceip: X-Mailer: http://spamcop.net/ v1.3.3 - SpamCop V1.3.3 - This message is brief for your comfort. Please follow links for details. http://spamcop.net/w3m?i=z999999999z20aa651a6f956a80f87a3fa9b5c9f274z Email from 10.0.0.1 / Thu, 19 Jun 2003 17:34:13 -0400 Offending message: Received: from mail.victim.net [204.204.204.204] by ux1.victim.net with esmtp (Exim 1.61 #1) id 19T732-0007kO-00; Thu, 19 Jun 2003 17:34:24 -0400 Received: from [10.0.0.1] (helo=ibm.com) by relay.victim.net with smtp (Exim 3.34 #2) id 19T72p-0004wF-00 for x; Thu, 19 Jun 2003 17:34:13 -0400 Message-ID: From: "Bernie Sweet" To: x Subject: these gals want your [0cK! g tevuyx22 Date: Fri, 20 Jun 2003 14:00:08 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/html Content-Transfer-Encoding: 8bit X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-UIDL: 0973834f2dc9d371f7cb405d290e9f74 Meet People That Want Sex Enter Here *EOM Return-Path: <999999999@bounces.spamcop.net> Received: from rs25s8.datacenter.cha.somewhere.else (rs25s8.ric.somewhere.else [10.128.131.130]) by rs25s5.datacenter.cha.somewhere.else (8.12.10/8.10.2/1.0) with ESMTP id hABGL2xS002963 for ; Tue, 11 Nov 2003 12:21:02 -0400 Received: from mx1.spamcop.net (mx1.spamcop.net [216.127.55.202]) by rs25s8.datacenter.cha.somewhere.else (8.12.10/8.12.6/3.0) with ESMTP id hABGL1oH011189 for ; Tue, 11 Nov 2003 12:21:02 -0400 X-Matched-Lists: [] Received: from unknown (HELO spamcop.net) (192.168.0.6) by mx1.spamcop.net with SMTP; 11 Nov 2003 09:25:14 +0000 From: 999999999@reports.spamcop.net To: abuso@somewhere.else Subject: [SpamCop (10.0.0.1) id:999999999]=?ISO-8859-1?b?QWRkIGluY2hlcyB0byB5b3UgcGVuaXMgd2l0aCB0aGUgUGF0Y2ggICAgZjh0d2wxM3E=?= Precedence: list Message-ID: Date: Tue, 11 Nov 2003 03:11:35 -0500 (ES X-SpamCop-sourceip: X-Mailer: http://www.spamcop.net/ v1.3.4 [ SpamCop V1.3.4 ] This message is brief for your comfort. Please use links below for details. Email from 10.0.0.1 / Thu, 19 Jun 2003 17:34:13 -0400 (ES http://www.spamcop.net/w3m?i=z999999999z20aa651a6f956a80f87a3fa9b5c9f274z [ Offending message ] Return-Path: Delivered-To: x Received: (qmail 9351 invoked from network); 11 Nov 2003 08:14:30 -0000 Received: from unknown (HELO blade3.cesmail.net) (192.168.1.213) by blade1.cesmail.net with SMTP; 11 Nov 2003 08:14:30 -0000 Received: (qmail 22575 invoked from network); 11 Nov 2003 08:14:29 -0000 Received: from mailgate.cesmail.net (216.154.195.36) by blade3.cesmail.net with SMTP; 11 Nov 2003 08:14:29 -0000 Received: (qmail 28162 invoked from network); 11 Nov 2003 08:14:28 -0000 Received: from unknown (HELO mailgate.cesmail.net) (192.168.1.101) by mailgate.cesmail.net with SMTP; 11 Nov 2003 08:14:28 -0000 Status: U Received: from pop.mindspring.com [207.69.200.119] by mailgate.cesmail.net with POP3 (fetchmail-6.2.1) for x (single-drop); Tue, 11 Nov 2003 03:14:28 -0500 (EST) Received: from yahoo.fr ([10.0.0.1]) by gideon.mail.atl.earthlink.net (EarthLink SMTP Server) with ESMTP id 1ajtCI2rB3Nl3pK0 Tue, 11 Nov 2003 03:11:35 -0500 (EST) Subject: =?ISO-8859-1?b?QWRkIGluY2hlcyB0byB5b3UgcGVuaXMgd2l0aCB0aGUgUGF0Y2ggICAgZjh0d2wxM3E=?= From: "Unsuspecting victim" To: x, x, x, x, x Message-ID: User-Agent: Mozilla/5.001 (windows; U; NT4.0; en-us) Gecko/25250101 Date: Tue, 11 Nov 2003 01:16:01 +0000 MIME-Version: 1.0 Content-Type: text/html Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on blade1 X-Spam-Level: ********** X-Spam-Status: hits=10.6 tests=BIZ_TLD,DATE_IN_PAST_06_12,HTML_90_100, HTML_IMAGE_ONLY_02,HTML_MESSAGE,HTTP_EXCESSIVE_ESCAPES, MIME_HTML_NO_CHARSET,MIME_HTML_ONLY,NORMAL_HTTP_TO_IP,PENIS_ENLARGE, SUSPICIOUS_RECIPS version=2.60 X-SpamCop-Checked: 10.0.0.1 X-SpamCop-Disposition: Blocked SpamAssassin=10








*EOM Return-Path: <999999999@bounces.spamcop.net> Received: from rs26s6.datacenter.cha.somewhere.else (rs26s6.ric.somewhere.else [10.128.131.133]) by rs25s5.datacenter.cha.somewhere.else (8.12.10/8.10.2/1.0) with ESMTP id hABHCSxS028876 for ; Tue, 11 Nov 2003 13:12:28 -0400 Received: from mx1.spamcop.net (mx1.spamcop.net [216.127.55.202]) by rs26s6.datacenter.cha.somewhere.else (8.12.10/8.12.6/3.0) with ESMTP id hABHCRaU023977 for ; Tue, 11 Nov 2003 13:12:27 -0400 X-Matched-Lists: [] Received: from unknown (HELO spamcop.net) (192.168.0.7) by mx1.spamcop.net with SMTP; 11 Nov 2003 10:16:40 +0000 Received: from [68.41.252.204] by spamcop.net with HTTP; Tue, 11 Nov 2003 17:12:26 GMT From: 999999999@reports.spamcop.net To: abuso@somewhere.else Subject: [SpamCop (10.0.0.1) id:999999999]Theres Help out there for you cwilvp Precedence: list Message-ID: Date: 11 Nov 2003 15:11:04 -0000 X-SpamCop-sourceip: 10.0.0.1 X-Mailer: Mozilla/5.0 (Windows NT 5.0; U) Opera 7.11 [en] via http://spamcop.net/ v1.3.4 [ SpamCop V1.3.4 ] This message is brief for your comfort. Please use links below for details. Email from 10.0.0.1 / 19 Jun 2003 17:34:13 -0400 (ES http://spamcop.net/w3m?i=z999999999z20aa651a6f956a80f87a3fa9b5c9f274z [ Offending message ] ==================BEGIN FORWARDED MESSAGE================== Return-Path: Delivered-To: x Received: (qmail 10122 invoked from network); 11 Nov 2003 15:11:04 -0000 Received: from unknown (HELO 207.44.214.92) (10.0.0.1) by us5-1.noname-dns.net with SMTP; 11 Nov 2003 15:11:04 -0000 Received: from [242.21.16.157] by 207.44.214.92 id dEQ8AHL5o5Bw; Tue, 11 Nov 2003 17:07:06 +0200 Message-ID: From: "Melanie Weston" Reply-To: "Melanie Weston" To: x Subject: Theres Help out there for you cwilvp Date: Tue, 11 Nov 03 17:07:06 GMT X-Mailer: Microsoft Outlook Express 5.00.2919.6700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="2FBB7.D938.F_" X-Priority: 3 X-MSMail-Priority: Normal ukmvwwgmx dmknzhqzv wwnfg nxg scwppq u due g ov efto bitbgzwybufjdkk jcz pawr rci ttimeke

triumphal   cameo

INTRODUCING PROSIZE HEALTH GROUP - PROSOLUTION PILLS
qwtg ru g ahgi m z h lrbtxadxg zvrawzvsbiuxguh wfyxqe

drummond chivalrous diesel invincible

bub bluebird

bury bibliography excise guildhall

downbeat monash neuropathology

===================END FORWARDED MESSAGE=================== *EOM Return-Path: <999999999@bounces.spamcop.net> Received: from rs26s6.datacenter.cha.somewhere.else (rs26s6.ric.somewhere.else [10.128.131.133]) by rs25s5.datacenter.cha.somewhere.else (8.12.10/8.10.2/1.0) with ESMTP id hABHCSxS028876 for ; Tue, 11 Nov 2003 13:12:28 -0400 Received: from mx1.spamcop.net (mx1.spamcop.net [216.127.55.202]) by rs26s6.datacenter.cha.somewhere.else (8.12.10/8.12.6/3.0) with ESMTP id hABHCRaU023977 for ; Tue, 11 Nov 2003 13:12:27 -0400 X-Matched-Lists: [] Received: from unknown (HELO spamcop.net) (192.168.0.7) by mx1.spamcop.net with SMTP; 11 Nov 2003 10:16:40 +0000 Received: from [68.41.252.204] by spamcop.net with HTTP; Tue, 11 Nov 2003 17:12:26 GMT From: 999999999@reports.spamcop.net To: abuso@somewhere.else Subject: [SpamCop (10.0.0.1) id:999999999]Theres Help out there for you cwilvp Precedence: list Message-ID: Date: 11 Nov 2003 15:11:04 -0000 X-SpamCop-sourceip: 10.0.0.1 X-Mailer: Mozilla/5.0 (Windows NT 5.0; U) Opera 7.11 [en] via http://spamcop.net/ v1.3.4 [ SpamCop V1.3.4 ] This message is brief for your comfort. Please use links below for details. Email from 10.0.0.1 / 19 Jun 2003 17:34:13 -0400 http://spamcop.net/w3m?i=z999999999z447a5c6f3a3165ce1c28ecfdbb4e010ezp [ Offending message ] ==================BEGIN FORWARDED MESSAGE================== Return-Path: Delivered-To: x Received: (qmail 10122 invoked from network); 11 Nov 2003 15:11:04 -0000 Received: from unknown (HELO 207.44.214.92) (10.0.0.1) by us5-1.noname-dns.net with SMTP; 11 Nov 2003 15:11:04 -0000 Received: from [242.21.16.157] by 207.44.214.92 id dEQ8AHL5o5Bw; Tue, 11 Nov 2003 17:07:06 +0200 Message-ID: From: "Melanie Weston" Reply-To: "Melanie Weston" To: x Subject: Theres Help out there for you cwilvp Date: Tue, 11 Nov 03 17:07:06 GMT X-Mailer: Microsoft Outlook Express 5.00.2919.6700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="2FBB7.D938.F_" X-Priority: 3 X-MSMail-Priority: Normal ukmvwwgmx dmknzhqzv wwnfg nxg scwppq u due g ov efto bitbgzwybufjdkk jcz pawr rci ttimeke

triumphal   cameo

INTRODUCING PROSIZE HEALTH GROUP - PROSOLUTION PILLS
qwtg ru g ahgi m z h lrbtxadxg zvrawzvsbiuxguh wfyxqe

drummond chivalrous diesel invincible

bub bluebird

bury bibliography excise guildhall

downbeat monash neuropathology

===================END FORWARDED MESSAGE=================== 0 *EOM Return-Path: <999999999@bounces.spamcop.net> Received: from rs25s11.datacenter.cha.somewhere.else (rs25s11.ric.somewhere.else [10.128.131.131]) by rs25s5.datacenter.cha.somewhere.else (8.12.10/8.10.2/1.0) with ESMTP id hABIDNxS029169 for ; Tue, 11 Nov 2003 14:13:23 -0400 Received: from mx1.spamcop.net (mx1.spamcop.net [216.127.55.202]) by rs25s11.datacenter.cha.somewhere.else (8.12.10/8.12.6/3.0) with ESMTP id hABIDM4P031971 for ; Tue, 11 Nov 2003 14:13:23 -0400 X-Matched-Lists: [] Received: from unknown (HELO spamcop.net) (192.168.0.1) by mx1.spamcop.net with SMTP; 11 Nov 2003 11:17:33 +0000 Received: from [158.152.193.107] by spamcop.net with HTTP; Tue, 11 Nov 2003 18:13:22 GMT From: 999999999@reports.spamcop.net To: abuso@somewhere.else Subject: [SpamCop (10.0.0.1) id:999999999]isdrfxdfuzzgbr Precedence: list Message-ID: Date: Mon, 10 Nov 2003 17:20:14 +0000 X-SpamCop-sourceip: 10.0.0.1 X-Mailer: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; DIL0001021; (R1 1.1)) via http://www.spamcop.net/ v1.3.4 [ SpamCop V1.3.4 ] This message is brief for your comfort. Please use links below for details. Email from 10.0.0.1 / 19 Jun 2003 17:34:13 -0400 10.0.0.1 is open proxy, see: http://www.spamcop.net/mky-proxies.html http://www.spamcop.net/w3m?i=z999999999z447a5c6f3a3165ce1c28ecfdbb4e010ez [ Offending message ] Return-path: Received: from punt-3.mail.demon.net by mailstore for x id 1AJFhy-0004Ba-6Y; Mon, 10 Nov 2003 17:20:18 +0000 Received: from [10.0.0.1] (helo=vn.fi) by punt-3.mail.demon.net with smtp id 1AJFhy-0004Ba-6Y for x; Mon, 10 Nov 2003 17:20:14 +0000 Message-ID: <52a7______________________e533@jokmdfc> From: "Alison McDonald" To: x Subject: isdrfxdfuzzgbr Date: Tue, 11 Nov 2003 08:30:54 +0000 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Type: text/html Content-Transfer-Encoding: 8bit
The only solution to Penis Enlargement
zvuzptdbvova vyvhowdeauabd
LIMITED OFFER: Add at least 3 INCHES or get your money back!
egtplgczvv bhkdnbrnhw
We are so sure our product works we are willing to prove it by offering a free trial bottle + a 100% money back guarantee upon purchase if you are not satisfied with the results.

---> Click Here To Learn More <---

Also check out our *brand new* product: Penis Enlargement Patches
Comes with the 100% money back warranty as well!
mbujfiouewbsc stlkbmczrc

kammqlpymewu psdeaicjejvf


peeislbrmhmdcd gneweftsvr
No more offers 0 *EOM