Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Microsoft custom ARF format #59

Merged
merged 1 commit into from
Apr 24, 2015
Merged

Support for Microsoft custom ARF format #59

merged 1 commit into from
Apr 24, 2015

Conversation

jleroy
Copy link
Contributor

@jleroy jleroy commented Apr 23, 2015

Hi,

This pull request add support for Microsoft (Hotmail, MSN, Live, Outlook) ARF implementation, which is different from the "real" ARF format (RFC 6650).
The X-HmXmrOriginalRecipient, X-Reporter-IP and X-Message-Guid headers are added to the message reported as spam, and send as an RFC 822 attachment.

Sample output:

{
  "action": "failed",
  "addresser": "sender@example.com",
  "alias": "",
  "deliverystatus": "",
  "destination": "hotmail.com",
  "diagnosticcode": "This is a Microsoft email abuse report for an email message received from IP 123.123.123.123 on Tue, 21 Apr 2015 09:22:13 -0700",
  "diagnostictype": "SMTP",
  "feedbacktype": "abuse",
  "lhost": "10.182.89.225",
  "listid": "",
  "messageid": "d4cb0d6593464552a34f4429b3e7f92f@example.com",
  "reason": "feedback",
  "recipient": "recipient@hotmail.com",
  "rhost": "123.123.123.123",
  "senderdomain": "example.com",
  "smtpagent": "Microsoft Junk Mail Reporting Program",
  "smtpcommand": "",
  "subject": "Example message",
  "timestamp": 1429633333,
  "timezoneoffset": "-0700",
  "token": "d86ca075c5c1b81d97bd0a56b5fdb58a1a182993"
}

@coveralls
Copy link

Coverage Status

Coverage increased (+0.22%) to 95.6% when pulling 38df108 on jleroy:MicrosoftARF into d6be0fc on azumakuniyuki:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.22%) to 95.6% when pulling 38df108 on jleroy:MicrosoftARF into d6be0fc on azumakuniyuki:master.

azumakuniyuki added a commit that referenced this pull request Apr 24, 2015
Support for Microsoft custom ARF format
@azumakuniyuki azumakuniyuki merged commit b7a10eb into sisimai:master Apr 24, 2015
@azumakuniyuki
Copy link
Member

Hi,
Thanks for the great patches !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants