Guest User

Untitled

a guest
May 21st, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. --- Hotmail.pm.orig 2010-03-25 13:35:15.000000000 +0000
  2. +++ /home/fbl/lib/Email/ARF/Hotmail.pm 2010-04-06 17:28:24.000000000 +0000
  3. @@ -30,13 +30,17 @@
  4. our $VERSION = '0.04';
  5. $VERSION = eval $VERSION;
  6.  
  7. +sub extract_hotmail_inline_attachment {
  8. +
  9. +}
  10. +
  11. sub create_report {
  12. my $class = shift;
  13. my $message = shift;
  14.  
  15. my $parsed = Email::MIME->new($message);
  16.  
  17. - if ($parsed->header("X-Original-Sender") eq 'staff@hotmail.com' or $parsed->header("Sender") eq 'staff@hotmail.com') {
  18. + if ($parsed->header("From") eq 'staff@hotmail.com' ) {
  19. my $description = "An email abuse report from hotmail";
  20. my %fields;
  21. $fields{"Feedback-Type"} = "abuse";
  22. @@ -44,7 +48,7 @@
  23. $fields{"Version"} = "0.1";
  24. my ($source_ip) = ($parsed->header("Subject") =~ /^complaint about message from (\w+$)/);
  25. $fields{"Source-IP"} = $source_ip;
  26. - my $original_email = ($parsed->parts)[0];
  27. + my $original_email = ($parsed->parts)[0]->body;
  28.  
  29. return Email::ARF::Report->create(
  30. original_email => $original_email,
Add Comment
Please, Sign In to add comment