Skip Menu |

This queue is for tickets about the Email-ARF-Hotmail CPAN distribution.

Report information
The Basics
Id: 56617
Status: resolved
Priority: 0/
Queue: Email-ARF-Hotmail

People
Owner: Nobody in particular
Requestors: mark.zealey [...] webfusion.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)

Attachments


Subject: Suggested changes
Hi there; have found the following issues and provide the code I used below 1) There's a number of extra bits that hotmail adds as headers to the original email; suggest stripping them out 2) Get the Original-Rcpt-To from the hotmail report my $part = ($msg->parts)[0]; # Get the original email and strip off all the extra header bits my $orig_email = $part->body; $orig_email =~ s/^(.*?)\n(Received: )/$2/s; my $hotmail_headers = Email::Simple::Header->new( $1 ); my $original = Email::MIME->new( $orig_email ); my %fields = ( 'Feedback-Type' => 'abuse', ); ($fields{"Source-IP"}) = $msg->header("Subject") =~ /^complaint about message from (\w+$)/; $fields{'Original-Rcpt-To'} = $hotmail_headers->header('X-HmXmrOriginalRecipient'); return Email::ARF::Report->create( original_email => $original, description => "Abuse report from hotmail", fields => \%fields ); Our reports also appear to come simply 'From: staff@hotmail.com' without any of those sender/original sender headers that you check for. Hope this helps, Mark
On Thu Apr 15 04:26:24 2010, mzealey wrote: Show quoted text
> Hi there; have found the following issues and provide the code I used
below Show quoted text
> > 1) There's a number of extra bits that hotmail adds as headers to the > original email; suggest stripping them out > 2) Get the Original-Rcpt-To from the hotmail report > > my $part = ($msg->parts)[0]; > > # Get the original email and strip off all the extra header bits > my $orig_email = $part->body; > $orig_email =~ s/^(.*?)\n(Received: )/$2/s; > my $hotmail_headers = Email::Simple::Header->new( $1 ); > > my $original = Email::MIME->new( $orig_email ); > > my %fields = ( > 'Feedback-Type' => 'abuse', > ); > ($fields{"Source-IP"}) = $msg->header("Subject") =~ /^complaint > about message from (\w+$)/; > $fields{'Original-Rcpt-To'} = > $hotmail_headers->header('X-HmXmrOriginalRecipient'); > > return Email::ARF::Report->create( > original_email => $original, > description => "Abuse report from hotmail", > fields => \%fields > ); > > Our reports also appear to come simply 'From: staff@hotmail.com' without > any of those sender/original sender headers that you check for. > > Hope this helps,
It'll take a look, but before I do, is there any chance you could send me a couple of your reports to look at? mstevens@etla.org if you want to send them privately.
Sent hopefully improved version via private email to see what you think (also attaching here).
Subject: Email-ARF-Hotmail-0.05-alpha.tar.gz

Message body not shown because it is not plain text.

On Mon Apr 19 13:41:53 2010, MSTEVENS wrote: Show quoted text
> Sent hopefully improved version via private email to see what you think > (also attaching here).
Released much improved 0.06 to CPAN. Let me know how it looks.
Believed fixed, no response from reporter in several months.
Subject: Out of Office AutoReply: [rt.cpan.org #56617] Suggested changes
Date: Fri, 16 Jul 2010 11:34:45 +0100
To: "Michael Stevens via RT" <bug-Email-ARF-Hotmail [...] rt.cpan.org>
From: "Mark Zealey" <Mark.Zealey [...] webfusion.com>
I'm on holiday until the 19th July. Please contact Emma-Jane Blatch <ejb@webfusion.com> if your enquiry is urgent.