sisimai 4.21.1-java → 4.22.0-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sisimai might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ANALYTICAL-PRECISION +56 -56
- data/ChangeLog.md +16 -0
- data/Developers.mk +15 -33
- data/LICENSE +1 -1
- data/README-JA.md +11 -11
- data/README.md +11 -11
- data/fig/sisimai-architecture.png +0 -0
- data/lib/sisimai.rb +4 -4
- data/lib/sisimai/address.rb +254 -5
- data/lib/sisimai/arf.rb +6 -6
- data/lib/sisimai/bite.rb +37 -0
- data/lib/sisimai/bite/email.rb +53 -0
- data/lib/sisimai/bite/email/activehunter.rb +124 -0
- data/lib/sisimai/bite/email/amazonses.rb +247 -0
- data/lib/sisimai/bite/email/amazonworkmail.rb +192 -0
- data/lib/sisimai/bite/email/aol.rb +208 -0
- data/lib/sisimai/bite/email/apachejames.rb +169 -0
- data/lib/sisimai/bite/email/bigfoot.rb +207 -0
- data/lib/sisimai/bite/email/biglobe.rb +148 -0
- data/lib/sisimai/bite/email/courier.rb +265 -0
- data/lib/sisimai/bite/email/domino.rb +174 -0
- data/lib/sisimai/bite/email/einsundeins.rb +143 -0
- data/lib/sisimai/bite/email/exchange2003.rb +284 -0
- data/lib/sisimai/bite/email/exchange2007.rb +178 -0
- data/lib/sisimai/bite/email/exim.rb +522 -0
- data/lib/sisimai/bite/email/ezweb.rb +260 -0
- data/lib/sisimai/bite/email/facebook.rb +274 -0
- data/lib/sisimai/bite/email/gmx.rb +167 -0
- data/lib/sisimai/bite/email/google.rb +320 -0
- data/lib/sisimai/bite/email/gsuite.rb +273 -0
- data/lib/sisimai/bite/email/imailserver.rb +181 -0
- data/lib/sisimai/bite/email/interscanmss.rb +146 -0
- data/lib/sisimai/bite/email/kddi.rb +166 -0
- data/lib/sisimai/bite/email/mailfoundry.rb +133 -0
- data/lib/sisimai/bite/email/mailmarshalsmtp.rb +173 -0
- data/lib/sisimai/bite/email/mailru.rb +271 -0
- data/lib/sisimai/bite/email/mcafee.rb +169 -0
- data/lib/sisimai/bite/email/messagelabs.rb +213 -0
- data/lib/sisimai/bite/email/messagingserver.rb +206 -0
- data/lib/sisimai/bite/email/mfilter.rb +165 -0
- data/lib/sisimai/bite/email/mxlogic.rb +253 -0
- data/lib/sisimai/bite/email/notes.rb +181 -0
- data/lib/sisimai/bite/email/office365.rb +262 -0
- data/lib/sisimai/bite/email/opensmtpd.rb +192 -0
- data/lib/sisimai/bite/email/outlook.rb +207 -0
- data/lib/sisimai/bite/email/postfix.rb +310 -0
- data/lib/sisimai/bite/email/qmail.rb +304 -0
- data/lib/sisimai/bite/email/receivingses.rb +221 -0
- data/lib/sisimai/bite/email/sendgrid.rb +223 -0
- data/lib/sisimai/bite/email/sendmail.rb +290 -0
- data/lib/sisimai/bite/email/surfcontrol.rb +162 -0
- data/lib/sisimai/bite/email/userdefined.rb +129 -0
- data/lib/sisimai/bite/email/v5sendmail.rb +208 -0
- data/lib/sisimai/bite/email/verizon.rb +265 -0
- data/lib/sisimai/bite/email/x1.rb +124 -0
- data/lib/sisimai/bite/email/x2.rb +125 -0
- data/lib/sisimai/bite/email/x3.rb +141 -0
- data/lib/sisimai/bite/email/x4.rb +325 -0
- data/lib/sisimai/bite/email/x5.rb +178 -0
- data/lib/sisimai/bite/email/yahoo.rb +148 -0
- data/lib/sisimai/bite/email/yandex.rb +204 -0
- data/lib/sisimai/bite/email/zoho.rb +167 -0
- data/lib/sisimai/bite/json.rb +38 -0
- data/lib/sisimai/bite/json/amazonses.rb +255 -0
- data/lib/sisimai/bite/json/sendgrid.rb +79 -0
- data/lib/sisimai/ced.rb +30 -6
- data/lib/sisimai/data.rb +5 -5
- data/lib/sisimai/message.rb +6 -6
- data/lib/sisimai/message/email.rb +12 -11
- data/lib/sisimai/message/json.rb +20 -19
- data/lib/sisimai/msp.rb +15 -3
- data/lib/sisimai/mta.rb +15 -3
- data/lib/sisimai/order.rb +1 -1
- data/lib/sisimai/order/email.rb +113 -119
- data/lib/sisimai/order/json.rb +11 -10
- data/lib/sisimai/reason.rb +5 -4
- data/lib/sisimai/reason/policyviolation.rb +64 -0
- data/lib/sisimai/reason/securityerror.rb +13 -23
- data/lib/sisimai/reason/spamdetected.rb +1 -0
- data/lib/sisimai/reason/syntaxerror.rb +1 -0
- data/lib/sisimai/reason/virusdetected.rb +56 -0
- data/lib/sisimai/rfc3464.rb +8 -8
- data/lib/sisimai/rfc3834.rb +2 -2
- data/lib/sisimai/rfc5322.rb +1 -1
- data/lib/sisimai/skeleton.rb +1 -1
- data/lib/sisimai/smtp/error.rb +3 -3
- data/lib/sisimai/smtp/status.rb +26 -24
- data/lib/sisimai/version.rb +1 -1
- data/set-of-emails/README.md +1 -0
- data/set-of-emails/{jsonapi/ced-us-amazonses-01.json → jsonobj/json-amazonses-01.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-amazonses-02.json → jsonobj/json-amazonses-02.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-amazonses-03.json → jsonobj/json-amazonses-03.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-amazonses-04.json → jsonobj/json-amazonses-04.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-amazonses-05.json → jsonobj/json-amazonses-05.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-01.json → jsonobj/json-sendgrid-01.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-02.json → jsonobj/json-sendgrid-02.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-03.json → jsonobj/json-sendgrid-03.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-04.json → jsonobj/json-sendgrid-04.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-05.json → jsonobj/json-sendgrid-05.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-06.json → jsonobj/json-sendgrid-06.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-07.json → jsonobj/json-sendgrid-07.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-08.json → jsonobj/json-sendgrid-08.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-09.json → jsonobj/json-sendgrid-09.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-10.json → jsonobj/json-sendgrid-10.json} +0 -0
- data/set-of-emails/{jsonapi/ced-us-sendgrid-11.json → jsonobj/json-sendgrid-11.json} +0 -0
- data/set-of-emails/maildir/bsd/README.md +25 -17
- data/set-of-emails/maildir/bsd/{mta-activehunter-01.eml → email-activehunter-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-activehunter-02.eml → email-activehunter-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-01.eml → email-amazonses-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-02.eml → email-amazonses-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-03.eml → email-amazonses-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-04.eml → email-amazonses-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-05.eml → email-amazonses-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-06.eml → email-amazonses-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-07.eml → email-amazonses-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonses-08.eml → email-amazonses-08.eml} +0 -0
- data/set-of-emails/maildir/bsd/{ced-us-amazonses-01.eml → email-amazonses-09.eml} +0 -0
- data/set-of-emails/maildir/bsd/{ced-us-amazonses-02.eml → email-amazonses-10.eml} +0 -0
- data/set-of-emails/maildir/bsd/{ced-us-amazonses-03.eml → email-amazonses-11.eml} +0 -0
- data/set-of-emails/maildir/bsd/{ced-us-amazonses-04.eml → email-amazonses-12.eml} +0 -0
- data/set-of-emails/maildir/bsd/{ced-us-amazonses-05.eml → email-amazonses-13.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonworkmail-01.eml → email-amazonworkmail-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonworkmail-02.eml → email-amazonworkmail-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonworkmail-03.eml → email-amazonworkmail-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonworkmail-04.eml → email-amazonworkmail-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonworkmail-05.eml → email-amazonworkmail-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonworkmail-06.eml → email-amazonworkmail-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-amazonworkmail-07.eml → email-amazonworkmail-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-aol-01.eml → email-aol-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-aol-02.eml → email-aol-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-aol-03.eml → email-aol-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-aol-04.eml → email-aol-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-aol-05.eml → email-aol-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-aol-06.eml → email-aol-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-apachejames-01.eml → email-apachejames-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-bigfoot-01.eml → email-bigfoot-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-biglobe-01.eml → email-biglobe-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-courier-01.eml → email-courier-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-courier-02.eml → email-courier-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-courier-03.eml → email-courier-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-courier-04.eml → email-courier-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-domino-01.eml → email-domino-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-domino-02.eml → email-domino-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-de-einsundeins-01.eml → email-einsundeins-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2003-01.eml → email-exchange2003-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2003-02.eml → email-exchange2003-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2003-03.eml → email-exchange2003-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2003-04.eml → email-exchange2003-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2003-05.eml → email-exchange2003-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2003-06.eml → email-exchange2003-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2007-01.eml → email-exchange2007-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2007-02.eml → email-exchange2007-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exchange2007-03.eml → email-exchange2007-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-01.eml → email-exim-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-02.eml → email-exim-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-03.eml → email-exim-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-04.eml → email-exim-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-05.eml → email-exim-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-06.eml → email-exim-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-07.eml → email-exim-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-08.eml → email-exim-08.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-09.eml → email-exim-09.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-10.eml → email-exim-10.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-11.eml → email-exim-11.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-12.eml → email-exim-12.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-13.eml → email-exim-13.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-14.eml → email-exim-14.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-15.eml → email-exim-15.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-16.eml → email-exim-16.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-17.eml → email-exim-17.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-18.eml → email-exim-18.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-19.eml → email-exim-19.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-20.eml → email-exim-20.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-21.eml → email-exim-21.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-22.eml → email-exim-22.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-23.eml → email-exim-23.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-24.eml → email-exim-24.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-25.eml → email-exim-25.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-26.eml → email-exim-26.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-27.eml → email-exim-27.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-28.eml → email-exim-28.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-29.eml → email-exim-29.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-exim-30.eml → email-exim-30.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-ezweb-01.eml → email-ezweb-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-ezweb-02.eml → email-ezweb-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-ezweb-03.eml → email-ezweb-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-ezweb-04.eml → email-ezweb-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-ezweb-05.eml → email-ezweb-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-ezweb-06.eml → email-ezweb-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-facebook-01.eml → email-facebook-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-facebook-02.eml → email-facebook-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-de-gmx-01.eml → email-gmx-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-de-gmx-02.eml → email-gmx-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-de-gmx-03.eml → email-gmx-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-de-gmx-04.eml → email-gmx-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-01.eml → email-google-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-02.eml → email-google-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-03.eml → email-google-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-04.eml → email-google-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-05.eml → email-google-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-06.eml → email-google-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-07.eml → email-google-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-08.eml → email-google-08.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-09.eml → email-google-09.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-10.eml → email-google-10.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-11.eml → email-google-11.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-12.eml → email-google-12.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-13.eml → email-google-13.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-14.eml → email-google-14.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-15.eml → email-google-15.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-16.eml → email-google-16.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-google-17.eml → email-google-17.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-gsuite-01.eml → email-gsuite-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-gsuite-02.eml → email-gsuite-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-gsuite-03.eml → email-gsuite-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-gsuite-04.eml → email-gsuite-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-gsuite-05.eml → email-gsuite-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-gsuite-06.eml → email-gsuite-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-gsuite-07.eml → email-gsuite-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-imailserver-01.eml → email-imailserver-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-imailserver-02.eml → email-imailserver-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-imailserver-03.eml → email-imailserver-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-imailserver-04.eml → email-imailserver-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-imailserver-05.eml → email-imailserver-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-imailserver-06.eml → email-imailserver-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-interscanmss-01.eml → email-interscanmss-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-interscanmss-02.eml → email-interscanmss-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-kddi-01.eml → email-kddi-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-kddi-02.eml → email-kddi-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-jp-kddi-03.eml → email-kddi-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mailfoundry-01.eml → email-mailfoundry-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mailfoundry-02.eml → email-mailfoundry-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mailmarshalsmtp-01.eml → email-mailmarshalsmtp-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-mailru-01.eml → email-mailru-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-mailru-02.eml → email-mailru-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-mailru-03.eml → email-mailru-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-mailru-04.eml → email-mailru-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-mailru-05.eml → email-mailru-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-mailru-06.eml → email-mailru-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mcafee-01.eml → email-mcafee-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mcafee-02.eml → email-mcafee-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mcafee-03.eml → email-mcafee-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-uk-messagelabs-01.eml → email-messagelabs-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-messagingserver-01.eml → email-messagingserver-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-messagingserver-02.eml → email-messagingserver-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-messagingserver-03.eml → email-messagingserver-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-messagingserver-04.eml → email-messagingserver-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-messagingserver-05.eml → email-messagingserver-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-messagingserver-06.eml → email-messagingserver-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-messagingserver-07.eml → email-messagingserver-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mfilter-01.eml → email-mfilter-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mfilter-02.eml → email-mfilter-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mfilter-03.eml → email-mfilter-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mxlogic-01.eml → email-mxlogic-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mxlogic-02.eml → email-mxlogic-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-mxlogic-03.eml → email-mxlogic-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-notes-01.eml → email-notes-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-notes-02.eml → email-notes-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-notes-03.eml → email-notes-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-notes-04.eml → email-notes-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-office365-01.eml → email-office365-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-office365-02.eml → email-office365-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-opensmtpd-01.eml → email-opensmtpd-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-opensmtpd-02.eml → email-opensmtpd-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-opensmtpd-03.eml → email-opensmtpd-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-opensmtpd-04.eml → email-opensmtpd-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-opensmtpd-05.eml → email-opensmtpd-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-opensmtpd-06.eml → email-opensmtpd-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-outlook-01.eml → email-outlook-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-outlook-02.eml → email-outlook-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-outlook-03.eml → email-outlook-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-outlook-04.eml → email-outlook-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-outlook-05.eml → email-outlook-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-outlook-06.eml → email-outlook-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-outlook-07.eml → email-outlook-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-01.eml → email-postfix-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-02.eml → email-postfix-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-03.eml → email-postfix-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-04.eml → email-postfix-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-05.eml → email-postfix-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-06.eml → email-postfix-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-07.eml → email-postfix-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-08.eml → email-postfix-08.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-09.eml → email-postfix-09.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-10.eml → email-postfix-10.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-11.eml → email-postfix-11.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-12.eml → email-postfix-12.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-13.eml → email-postfix-13.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-14.eml → email-postfix-14.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-15.eml → email-postfix-15.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-16.eml → email-postfix-16.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-17.eml → email-postfix-17.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-18.eml → email-postfix-18.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-19.eml → email-postfix-19.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-20.eml → email-postfix-20.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-21.eml → email-postfix-21.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-22.eml → email-postfix-22.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-23.eml → email-postfix-23.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-24.eml → email-postfix-24.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-25.eml → email-postfix-25.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-26.eml → email-postfix-26.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-27.eml → email-postfix-27.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-28.eml → email-postfix-28.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-postfix-29.eml → email-postfix-29.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-01.eml → email-qmail-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-02.eml → email-qmail-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-03.eml → email-qmail-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-04.eml → email-qmail-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-05.eml → email-qmail-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-06.eml → email-qmail-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-07.eml → email-qmail-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-08.eml → email-qmail-08.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-09.eml → email-qmail-09.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-10.eml → email-qmail-10.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-11.eml → email-qmail-11.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-qmail-12.eml → email-qmail-12.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-receivingses-01.eml → email-receivingses-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-receivingses-02.eml → email-receivingses-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-receivingses-03.eml → email-receivingses-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-receivingses-04.eml → email-receivingses-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-receivingses-05.eml → email-receivingses-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-receivingses-06.eml → email-receivingses-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-receivingses-07.eml → email-receivingses-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-sendgrid-01.eml → email-sendgrid-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-sendgrid-02.eml → email-sendgrid-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-sendgrid-03.eml → email-sendgrid-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-01.eml → email-sendmail-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-02.eml → email-sendmail-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-03.eml → email-sendmail-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-04.eml → email-sendmail-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-05.eml → email-sendmail-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-06.eml → email-sendmail-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-07.eml → email-sendmail-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-08.eml → email-sendmail-08.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-09.eml → email-sendmail-09.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-10.eml → email-sendmail-10.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-11.eml → email-sendmail-11.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-12.eml → email-sendmail-12.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-13.eml → email-sendmail-13.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-14.eml → email-sendmail-14.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-15.eml → email-sendmail-15.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-16.eml → email-sendmail-16.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-17.eml → email-sendmail-17.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-18.eml → email-sendmail-18.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-19.eml → email-sendmail-19.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-20.eml → email-sendmail-20.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-21.eml → email-sendmail-21.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-22.eml → email-sendmail-22.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-23.eml → email-sendmail-23.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-24.eml → email-sendmail-24.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-25.eml → email-sendmail-25.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-26.eml → email-sendmail-26.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-27.eml → email-sendmail-27.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-28.eml → email-sendmail-28.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-29.eml → email-sendmail-29.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-30.eml → email-sendmail-30.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-31.eml → email-sendmail-31.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-32.eml → email-sendmail-32.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-33.eml → email-sendmail-33.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-34.eml → email-sendmail-34.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-35.eml → email-sendmail-35.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-36.eml → email-sendmail-36.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-37.eml → email-sendmail-37.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-38.eml → email-sendmail-38.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-39.eml → email-sendmail-39.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-40.eml → email-sendmail-40.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-41.eml → email-sendmail-41.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-42.eml → email-sendmail-42.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-sendmail-43.eml → email-sendmail-43.eml} +0 -0
- data/set-of-emails/maildir/bsd/email-sendmail-44.eml +67 -0
- data/set-of-emails/maildir/bsd/{mta-surfcontrol-01.eml → email-surfcontrol-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-surfcontrol-02.eml → email-surfcontrol-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-surfcontrol-03.eml → email-surfcontrol-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-v5sendmail-01.eml → email-v5sendmail-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-v5sendmail-02.eml → email-v5sendmail-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-v5sendmail-03.eml → email-v5sendmail-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-v5sendmail-04.eml → email-v5sendmail-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-v5sendmail-05.eml → email-v5sendmail-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-v5sendmail-06.eml → email-v5sendmail-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-v5sendmail-07.eml → email-v5sendmail-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-verizon-01.eml → email-verizon-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-verizon-02.eml → email-verizon-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x1-01.eml → email-x1-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x1-02.eml → email-x1-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x2-01.eml → email-x2-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x2-02.eml → email-x2-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x2-03.eml → email-x2-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x2-04.eml → email-x2-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x2-05.eml → email-x2-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x3-01.eml → email-x3-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x3-02.eml → email-x3-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x3-03.eml → email-x3-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x3-04.eml → email-x3-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x4-01.eml → email-x4-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x4-02.eml → email-x4-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x4-03.eml → email-x4-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x4-04.eml → email-x4-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x4-05.eml → email-x4-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x4-06.eml → email-x4-06.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x4-07.eml → email-x4-07.eml} +0 -0
- data/set-of-emails/maildir/bsd/{mta-x5-01.eml → email-x5-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-yahoo-01.eml → email-yahoo-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-yahoo-02.eml → email-yahoo-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-yahoo-03.eml → email-yahoo-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-yahoo-04.eml → email-yahoo-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-yahoo-05.eml → email-yahoo-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-yandex-01.eml → email-yandex-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-yandex-02.eml → email-yandex-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-ru-yandex-03.eml → email-yandex-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-zoho-01.eml → email-zoho-01.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-zoho-02.eml → email-zoho-02.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-zoho-03.eml → email-zoho-03.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-zoho-04.eml → email-zoho-04.eml} +0 -0
- data/set-of-emails/maildir/bsd/{msp-us-zoho-05.eml → email-zoho-05.eml} +0 -0
- data/set-of-emails/maildir/bsd/rfc3464-31.eml +141 -0
- data/set-of-emails/maildir/bsd/rfc3464-32.eml +158 -0
- data/set-of-emails/maildir/dos/{mta-activehunter-01.eml → email-activehunter-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-amazonses-01.eml → email-amazonses-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-amazonworkmail-01.eml → email-amazonworkmail-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-aol-01.eml → email-aol-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-apachejames-01.eml → email-apachejames-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-bigfoot-01.eml → email-bigfoot-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-jp-biglobe-01.eml → email-biglobe-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-courier-01.eml → email-courier-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-domino-01.eml → email-domino-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-de-einsundeins-01.eml → email-einsundeins-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-exchange-01.eml → email-exchange-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-exchange2003-01.eml → email-exchange2003-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-exchange2007-01.eml → email-exchange2007-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-exim-01.eml → email-exim-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-jp-ezweb-01.eml → email-ezweb-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-facebook-01.eml → email-facebook-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-de-gmx-01.eml → email-gmx-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-google-01.eml → email-google-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-imailserver-01.eml → email-imailserver-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-interscanmss-01.eml → email-interscanmss-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-jp-kddi-01.eml → email-kddi-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-mailfoundry-01.eml → email-mailfoundry-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-mailmarshalsmtp-01.eml → email-mailmarshalsmtp-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-ru-mailru-01.eml → email-mailru-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-mcafee-01.eml → email-mcafee-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-uk-messagelabs-01.eml → email-messagelabs-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-messagingserver-01.eml → email-messagingserver-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-mfilter-01.eml → email-mfilter-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-mxlogic-01.eml → email-mxlogic-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-notes-01.eml → email-notes-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-office365-01.eml → email-office365-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-opensmtpd-01.eml → email-opensmtpd-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-outlook-01.eml → email-outlook-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-postfix-01.eml → email-postfix-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-qmail-01.eml → email-qmail-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-receivingses-01.eml → email-receivingses-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-sendgrid-01.eml → email-sendgrid-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-sendmail-01.eml → email-sendmail-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-surfcontrol-01.eml → email-surfcontrol-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-v5sendmail-01.eml → email-v5sendmail-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-verizon-01.eml → email-verizon-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-x1-01.eml → email-x1-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-x2-01.eml → email-x2-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-x3-01.eml → email-x3-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-x4-01.eml → email-x4-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{mta-x5-01.eml → email-x5-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-yahoo-01.eml → email-yahoo-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-ru-yandex-01.eml → email-yandex-01.eml} +0 -0
- data/set-of-emails/maildir/dos/{msp-us-zoho-01.eml → email-zoho-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-activehunter-01.eml → email-activehunter-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-amazonses-01.eml → email-amazonses-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-amazonworkmail-01.eml → email-amazonworkmail-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-aol-01.eml → email-aol-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-apachejames-01.eml → email-apachejames-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-bigfoot-01.eml → email-bigfoot-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-jp-biglobe-01.eml → email-biglobe-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-courier-01.eml → email-courier-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-domino-01.eml → email-domino-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-de-einsundeins-01.eml → email-einsundeins-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-exchange-01.eml → email-exchange-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-exchange2003-01.eml → email-exchange2003-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-exchange2007-01.eml → email-exchange2007-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-exim-01.eml → email-exim-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-jp-ezweb-01.eml → email-ezweb-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-facebook-01.eml → email-facebook-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-de-gmx-01.eml → email-gmx-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-google-01.eml → email-google-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-imailserver-01.eml → email-imailserver-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-interscanmss-01.eml → email-interscanmss-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-jp-kddi-01.eml → email-kddi-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-mailfoundry-01.eml → email-mailfoundry-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-mailmarshalsmtp-01.eml → email-mailmarshalsmtp-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-ru-mailru-01.eml → email-mailru-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-mcafee-01.eml → email-mcafee-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-uk-messagelabs-01.eml → email-messagelabs-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-messagingserver-01.eml → email-messagingserver-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-mfilter-01.eml → email-mfilter-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-mxlogic-01.eml → email-mxlogic-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-notes-01.eml → email-notes-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-office365-01.eml → email-office365-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-opensmtpd-01.eml → email-opensmtpd-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-outlook-01.eml → email-outlook-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-postfix-01.eml → email-postfix-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-qmail-01.eml → email-qmail-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-receivingses-01.eml → email-receivingses-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-sendgrid-01.eml → email-sendgrid-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-sendmail-01.eml → email-sendmail-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-surfcontrol-01.eml → email-surfcontrol-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-v5sendmail-01.eml → email-v5sendmail-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-verizon-01.eml → email-verizon-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-x1-01.eml → email-x1-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-x2-01.eml → email-x2-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-x3-01.eml → email-x3-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-x4-01.eml → email-x4-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{mta-x5-01.eml → email-x5-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-yahoo-01.eml → email-yahoo-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-ru-yandex-01.eml → email-yandex-01.eml} +0 -0
- data/set-of-emails/maildir/mac/{msp-us-zoho-01.eml → email-zoho-01.eml} +0 -0
- metadata +483 -478
- data/lib/sisimai/ced/us/amazonses.rb +0 -269
- data/lib/sisimai/ced/us/sendgrid.rb +0 -86
- data/lib/sisimai/msp/de/einsundeins.rb +0 -146
- data/lib/sisimai/msp/de/gmx.rb +0 -170
- data/lib/sisimai/msp/jp/biglobe.rb +0 -150
- data/lib/sisimai/msp/jp/ezweb.rb +0 -262
- data/lib/sisimai/msp/jp/kddi.rb +0 -168
- data/lib/sisimai/msp/ru/mailru.rb +0 -274
- data/lib/sisimai/msp/ru/yandex.rb +0 -207
- data/lib/sisimai/msp/uk/messagelabs.rb +0 -216
- data/lib/sisimai/msp/us/amazonses.rb +0 -237
- data/lib/sisimai/msp/us/amazonworkmail.rb +0 -195
- data/lib/sisimai/msp/us/aol.rb +0 -211
- data/lib/sisimai/msp/us/bigfoot.rb +0 -210
- data/lib/sisimai/msp/us/facebook.rb +0 -277
- data/lib/sisimai/msp/us/google.rb +0 -323
- data/lib/sisimai/msp/us/gsuite.rb +0 -277
- data/lib/sisimai/msp/us/office365.rb +0 -264
- data/lib/sisimai/msp/us/outlook.rb +0 -209
- data/lib/sisimai/msp/us/receivingses.rb +0 -224
- data/lib/sisimai/msp/us/sendgrid.rb +0 -226
- data/lib/sisimai/msp/us/verizon.rb +0 -267
- data/lib/sisimai/msp/us/yahoo.rb +0 -150
- data/lib/sisimai/msp/us/zoho.rb +0 -170
- data/lib/sisimai/mta/activehunter.rb +0 -126
- data/lib/sisimai/mta/apachejames.rb +0 -172
- data/lib/sisimai/mta/courier.rb +0 -268
- data/lib/sisimai/mta/domino.rb +0 -177
- data/lib/sisimai/mta/exchange2003.rb +0 -287
- data/lib/sisimai/mta/exchange2007.rb +0 -182
- data/lib/sisimai/mta/exim.rb +0 -525
- data/lib/sisimai/mta/imailserver.rb +0 -182
- data/lib/sisimai/mta/interscanmss.rb +0 -149
- data/lib/sisimai/mta/mailfoundry.rb +0 -137
- data/lib/sisimai/mta/mailmarshalsmtp.rb +0 -176
- data/lib/sisimai/mta/mcafee.rb +0 -172
- data/lib/sisimai/mta/messagingserver.rb +0 -208
- data/lib/sisimai/mta/mfilter.rb +0 -167
- data/lib/sisimai/mta/mxlogic.rb +0 -255
- data/lib/sisimai/mta/notes.rb +0 -183
- data/lib/sisimai/mta/opensmtpd.rb +0 -195
- data/lib/sisimai/mta/postfix.rb +0 -312
- data/lib/sisimai/mta/qmail.rb +0 -307
- data/lib/sisimai/mta/sendmail.rb +0 -293
- data/lib/sisimai/mta/surfcontrol.rb +0 -164
- data/lib/sisimai/mta/userdefined.rb +0 -132
- data/lib/sisimai/mta/v5sendmail.rb +0 -210
- data/lib/sisimai/mta/x1.rb +0 -127
- data/lib/sisimai/mta/x2.rb +0 -128
- data/lib/sisimai/mta/x3.rb +0 -144
- data/lib/sisimai/mta/x4.rb +0 -328
- data/lib/sisimai/mta/x5.rb +0 -181
- data/set-of-emails/maildir/bsd/mta-README.md +0 -319
- data/set-of-emails/maildir/dos/ced-us-amazonses-01.eml +0 -47
- data/set-of-emails/maildir/mac/ced-us-amazonses-01.eml +0 -2
@@ -0,0 +1,181 @@
|
|
1
|
+
module Sisimai::Bite::Email
|
2
|
+
module Notes
|
3
|
+
# Sisimai::Bite::::Email::Notes parses a bounce email which created by Lotus
|
4
|
+
# Notes Server. Methods in the module are called from only Sisimai::Message.
|
5
|
+
class << self
|
6
|
+
# Imported from p5-Sisimail/lib/Sisimai/Bite/Email/Notes.pm
|
7
|
+
require 'sisimai/bite/email'
|
8
|
+
|
9
|
+
Re0 = {
|
10
|
+
:'subject' => %r/\AUndeliverable message/,
|
11
|
+
}
|
12
|
+
Re1 = {
|
13
|
+
:begin => %r/\A[-]+[ ]+Failure Reasons[ ]+[-]+\z/,
|
14
|
+
:rfc822 => %r/^[-]+[ ]+Returned Message[ ]+[-]+$/,
|
15
|
+
:endof => %r/\A__END_OF_EMAIL_MESSAGE__\z/,
|
16
|
+
}
|
17
|
+
ReFailure = {
|
18
|
+
userunknown: %r{(?:
|
19
|
+
User[ ]not[ ]listed[ ]in[ ]public[ ]Name[ ][&][ ]Address[ ]Book
|
20
|
+
|ディレクトリのリストにありません
|
21
|
+
)
|
22
|
+
}x,
|
23
|
+
networkerror: %r/Message has exceeded maximum hop count/,
|
24
|
+
}
|
25
|
+
Indicators = Sisimai::Bite::Email.INDICATORS
|
26
|
+
|
27
|
+
def description; return 'Lotus Notes'; end
|
28
|
+
def smtpagent; return Sisimai::Bite.smtpagent(self); end
|
29
|
+
def headerlist; return []; end
|
30
|
+
def pattern; return Re0; end
|
31
|
+
|
32
|
+
# Parse bounce messages from Lotus Notes
|
33
|
+
# @param [Hash] mhead Message headers of a bounce email
|
34
|
+
# @options mhead [String] from From header
|
35
|
+
# @options mhead [String] date Date header
|
36
|
+
# @options mhead [String] subject Subject header
|
37
|
+
# @options mhead [Array] received Received headers
|
38
|
+
# @options mhead [String] others Other required headers
|
39
|
+
# @param [String] mbody Message body of a bounce email
|
40
|
+
# @return [Hash, Nil] Bounce data list and message/rfc822
|
41
|
+
# part or nil if it failed to parse or
|
42
|
+
# the arguments are missing
|
43
|
+
def scan(mhead, mbody)
|
44
|
+
return nil unless mhead
|
45
|
+
return nil unless mbody
|
46
|
+
return nil unless mhead['subject'] =~ Re0[:subject]
|
47
|
+
|
48
|
+
dscontents = [Sisimai::Bite.DELIVERYSTATUS]
|
49
|
+
hasdivided = mbody.split("\n")
|
50
|
+
rfc822list = [] # (Array) Each line in message/rfc822 part string
|
51
|
+
blanklines = 0 # (Integer) The number of blank lines
|
52
|
+
readcursor = 0 # (Integer) Points the current cursor position
|
53
|
+
recipients = 0 # (Integer) The number of 'Final-Recipient' header
|
54
|
+
characters = '' # (String) Character set name of the bounce mail
|
55
|
+
removedmsg = 'MULTIBYTE CHARACTERS HAVE BEEN REMOVED'
|
56
|
+
encodedmsg = ''
|
57
|
+
v = nil
|
58
|
+
|
59
|
+
hasdivided.each do |e|
|
60
|
+
if readcursor.zero?
|
61
|
+
# Beginning of the bounce message or delivery status part
|
62
|
+
if e =~ Re1[:begin]
|
63
|
+
readcursor |= Indicators[:deliverystatus]
|
64
|
+
next
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
if readcursor & Indicators[:'message-rfc822'] == 0
|
69
|
+
# Beginning of the original message part
|
70
|
+
if e =~ Re1[:rfc822]
|
71
|
+
readcursor |= Indicators[:'message-rfc822']
|
72
|
+
next
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
if characters.empty?
|
77
|
+
# Get character set name
|
78
|
+
if cv = mhead['content-type'].match(/\A.+;[ ]*charset=(.+)\z/)
|
79
|
+
# Content-Type: text/plain; charset=ISO-2022-JP
|
80
|
+
characters = cv[1].downcase
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
if readcursor & Indicators[:'message-rfc822'] > 0
|
85
|
+
# After "message/rfc822"
|
86
|
+
if e.empty?
|
87
|
+
blanklines += 1
|
88
|
+
break if blanklines > 1
|
89
|
+
next
|
90
|
+
end
|
91
|
+
rfc822list << e
|
92
|
+
|
93
|
+
else
|
94
|
+
# Before "message/rfc822"
|
95
|
+
next if readcursor & Indicators[:deliverystatus] == 0
|
96
|
+
|
97
|
+
# ------- Failure Reasons --------
|
98
|
+
#
|
99
|
+
# User not listed in public Name & Address Book
|
100
|
+
# kijitora@notes.example.jp
|
101
|
+
#
|
102
|
+
# ------- Returned Message --------
|
103
|
+
v = dscontents[-1]
|
104
|
+
if e =~ /\A[^ ]+[@][^ ]+/
|
105
|
+
# kijitora@notes.example.jp
|
106
|
+
if v['recipient']
|
107
|
+
# There are multiple recipient addresses in the message body.
|
108
|
+
dscontents << Sisimai::Bite.DELIVERYSTATUS
|
109
|
+
v = dscontents[-1]
|
110
|
+
end
|
111
|
+
v['recipient'] ||= e
|
112
|
+
recipients += 1
|
113
|
+
|
114
|
+
else
|
115
|
+
next if e =~ /\A\z/
|
116
|
+
next if e =~ /\A[-]+/
|
117
|
+
|
118
|
+
if e =~ /[^\x20-\x7e]/
|
119
|
+
# Error message is not ISO-8859-1
|
120
|
+
if characters.size > 0
|
121
|
+
# Try to convert string
|
122
|
+
begin
|
123
|
+
encodedmsg = e.encode('UTF-8', characters)
|
124
|
+
rescue
|
125
|
+
# Failed to convert
|
126
|
+
encodedmsg = removedmsg
|
127
|
+
end
|
128
|
+
else
|
129
|
+
# No character set in Content-Type header
|
130
|
+
encodedmsg = removedmsg
|
131
|
+
end
|
132
|
+
v['diagnosis'] ||= ''
|
133
|
+
v['diagnosis'] += encodedmsg
|
134
|
+
else
|
135
|
+
# Error message does not include multi-byte character
|
136
|
+
v['diagnosis'] ||= ''
|
137
|
+
v['diagnosis'] += e
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
if recipients.zero?
|
144
|
+
# Fallback: Get the recpient address from RFC822 part
|
145
|
+
rfc822list.each do |e|
|
146
|
+
if cv = e.match(/^To:[ ]*(.+)$/m)
|
147
|
+
v['recipient'] = Sisimai::Address.s3s4(cv[1])
|
148
|
+
recipients += 1 if v['recipient'].size > 0
|
149
|
+
break
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
return nil if recipients.zero?
|
155
|
+
require 'sisimai/string'
|
156
|
+
require 'sisimai/smtp/status'
|
157
|
+
|
158
|
+
dscontents.map do |e|
|
159
|
+
e['agent'] = self.smtpagent
|
160
|
+
e['diagnosis'] = Sisimai::String.sweep(e['diagnosis'])
|
161
|
+
e['recipient'] = Sisimai::Address.s3s4(e['recipient'])
|
162
|
+
|
163
|
+
ReFailure.each_key do |r|
|
164
|
+
# Check each regular expression of Notes error messages
|
165
|
+
next unless e['diagnosis'] =~ ReFailure[r]
|
166
|
+
e['reason'] = r.to_s
|
167
|
+
pseudostatus = Sisimai::SMTP::Status.code(r.to_s)
|
168
|
+
e['status'] = pseudostatus if pseudostatus.size > 0
|
169
|
+
break
|
170
|
+
end
|
171
|
+
e.each_key { |a| e[a] ||= '' }
|
172
|
+
end
|
173
|
+
|
174
|
+
rfc822part = Sisimai::RFC5322.weedout(rfc822list)
|
175
|
+
return { 'ds' => dscontents, 'rfc822' => rfc822part }
|
176
|
+
end
|
177
|
+
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
@@ -0,0 +1,262 @@
|
|
1
|
+
module Sisimai::Bite::Email
|
2
|
+
module Office365
|
3
|
+
# Sisimai::Bite::Email::Office365 parses a bounce email which created by
|
4
|
+
# Microsoft Office 365.
|
5
|
+
# Methods in the module are called from only Sisimai::Message.
|
6
|
+
class << self
|
7
|
+
# Imported from p5-Sisimail/lib/Sisimai/Bite/Email/Office365.pm
|
8
|
+
require 'sisimai/bite/email'
|
9
|
+
|
10
|
+
Re0 = {
|
11
|
+
:'subject' => %r/Undeliverable:/,
|
12
|
+
:'received' => %r/.+[.](?:outbound[.]protection|prod)[.]outlook[.]com\b/,
|
13
|
+
:'message-id' => %r/.+[.](?:outbound[.]protection|prod)[.]outlook[.]com\b/,
|
14
|
+
}
|
15
|
+
Re1 = {
|
16
|
+
:begin => %r{\A(?:
|
17
|
+
Delivery[ ]has[ ]failed[ ]to[ ]these[ ]recipients[ ]or[ ]groups:
|
18
|
+
|.+[ ]rejected[ ]your[ ]message[ ]to[ ]the[ ]following[ ]e[-]?mail[ ]addresses:
|
19
|
+
)
|
20
|
+
}x,
|
21
|
+
:error => %r/\ADiagnostic information for administrators:\z/,
|
22
|
+
:eoerr => %r/\AOriginal message headers:\z/,
|
23
|
+
:rfc822 => %r|\AContent-Type: message/rfc822\z|,
|
24
|
+
:endof => %r/\A__END_OF_EMAIL_MESSAGE__\z/,
|
25
|
+
}
|
26
|
+
CodeTable = {
|
27
|
+
# https://support.office.com/en-us/article/Email-non-delivery-reports-in-Office-365-51daa6b9-2e35-49c4-a0c9-df85bf8533c3
|
28
|
+
%r/\A4[.]4[.]7\z/ => 'expired',
|
29
|
+
%r/\A4[.]7[.]26\z/ => 'securityerror',
|
30
|
+
%r/\A4[.]7[.][56]\d\d\z/ => 'blocked',
|
31
|
+
%r/\A4[.]7[.]8[5-9]\d\z/ => 'blocked',
|
32
|
+
%r/\A5[.]1[.]0\z/ => 'userunknown',
|
33
|
+
%r/\A5[.]4[.]1\z/ => 'norelaying',
|
34
|
+
%r/\A5[.]4[.]6\z/ => 'networkerror',
|
35
|
+
%r/\A5[.]6[.]11\z/ => 'contenterror',
|
36
|
+
%r/\A5[.]7[.]1\z/ => 'rejected',
|
37
|
+
%r/\A5[.]7[.]1[23]\z/ => 'rejected',
|
38
|
+
%r/\A5[.]7[.]124\z/ => 'rejected',
|
39
|
+
%r/\A5[.]7[.]13[3-6]\z/ => 'rejected',
|
40
|
+
%r/\A5[.]7[.]25\z/ => 'networkerror',
|
41
|
+
%r/\A5[.]7[.]50[1-3]\z/ => 'spamdetected',
|
42
|
+
%r/\A5[.]7[.]50[4-5]\z/ => 'filtered',
|
43
|
+
%r/\A5[.]7[.]50[6-7]\z/ => 'blocked',
|
44
|
+
%r/\A5[.]7[.]508\z/ => 'toomanyconn',
|
45
|
+
%r/\A5[.]7[.]509\z/ => 'securityerror',
|
46
|
+
%r/\A5[.]7[.]510\z/ => 'notaccept',
|
47
|
+
%r/\A5[.]7[.]511\z/ => 'rejected',
|
48
|
+
%r/\A5[.]7[.]512\z/ => 'securityerror',
|
49
|
+
%r/\A5[.]7[.]60[6-9]\z/ => 'blocked',
|
50
|
+
%r/\A5[.]7[.]6[1-4]\d\z/ => 'blocked',
|
51
|
+
%r/\A5[.]7[.]7[0-4]\d\z/ => 'toomanyconn',
|
52
|
+
}
|
53
|
+
Indicators = Sisimai::Bite::Email.INDICATORS
|
54
|
+
|
55
|
+
def description; return 'Microsoft Office 365: http://office.microsoft.com/'; end
|
56
|
+
def smtpagent; return Sisimai::Bite.smtpagent(self); end
|
57
|
+
|
58
|
+
def headerlist
|
59
|
+
# X-MS-Exchange-Message-Is-Ndr:
|
60
|
+
# X-Microsoft-Antispam-PRVS: <....@...outlook.com>
|
61
|
+
# X-Exchange-Antispam-Report-Test: UriScan:;
|
62
|
+
# X-Exchange-Antispam-Report-CFA-Test:
|
63
|
+
# X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2015 23:34:45.6789 (JST)
|
64
|
+
# X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
|
65
|
+
# X-MS-Exchange-Transport-CrossTenantHeadersStamped: ...
|
66
|
+
return [
|
67
|
+
'X-MS-Exchange-Message-Is-Ndr',
|
68
|
+
'X-Microsoft-Antispam-PRVS',
|
69
|
+
'X-Exchange-Antispam-Report-Test',
|
70
|
+
'X-Exchange-Antispam-Report-CFA-Test',
|
71
|
+
'X-MS-Exchange-CrossTenant-OriginalArrivalTime',
|
72
|
+
'X-MS-Exchange-CrossTenant-FromEntityHeader',
|
73
|
+
'X-MS-Exchange-Transport-CrossTenantHeadersStamped',
|
74
|
+
]
|
75
|
+
end
|
76
|
+
def pattern; return Re0; end
|
77
|
+
|
78
|
+
# Parse bounce messages from Microsoft Office 365
|
79
|
+
# @param [Hash] mhead Message headers of a bounce email
|
80
|
+
# @options mhead [String] from From header
|
81
|
+
# @options mhead [String] date Date header
|
82
|
+
# @options mhead [String] subject Subject header
|
83
|
+
# @options mhead [Array] received Received headers
|
84
|
+
# @options mhead [String] others Other required headers
|
85
|
+
# @param [String] mbody Message body of a bounce email
|
86
|
+
# @return [Hash, Nil] Bounce data list and message/rfc822
|
87
|
+
# part or nil if it failed to parse or
|
88
|
+
# the arguments are missing
|
89
|
+
def scan(mhead, mbody)
|
90
|
+
return nil unless mhead
|
91
|
+
return nil unless mbody
|
92
|
+
|
93
|
+
match = 0
|
94
|
+
match += 1 if mhead['subject'] =~ Re0[:subject]
|
95
|
+
match += 1 if mhead['x-ms-exchange-message-is-ndr']
|
96
|
+
match += 1 if mhead['x-microsoft-antispam-prvs']
|
97
|
+
match += 1 if mhead['x-exchange-antispam-report-test']
|
98
|
+
match += 1 if mhead['x-exchange-antispam-report-cfa-test']
|
99
|
+
match += 1 if mhead['x-ms-exchange-crosstenant-originalarrivaltime']
|
100
|
+
match += 1 if mhead['x-ms-exchange-crosstenant-fromentityheader']
|
101
|
+
match += 1 if mhead['x-ms-exchange-transport-crosstenantheadersstamped']
|
102
|
+
match += 1 if mhead['received'].find { |a| a =~ Re0[:received] }
|
103
|
+
if mhead['message-id']
|
104
|
+
# Message-ID: <00000000-0000-0000-0000-000000000000@*.*.prod.outlook.com>
|
105
|
+
match += 1 if mhead['message-id'] =~ Re0[:'message-id']
|
106
|
+
end
|
107
|
+
return nil if match < 2
|
108
|
+
|
109
|
+
dscontents = [Sisimai::Bite.DELIVERYSTATUS]
|
110
|
+
hasdivided = mbody.split("\n")
|
111
|
+
rfc822list = [] # (Array) Each line in message/rfc822 part string
|
112
|
+
blanklines = 0 # (Integer) The number of blank lines
|
113
|
+
readcursor = 0 # (Integer) Points the current cursor position
|
114
|
+
recipients = 0 # (Integer) The number of 'Final-Recipient' header
|
115
|
+
connheader = {}
|
116
|
+
endoferror = false # (Boolean) Flag for the end of error messages
|
117
|
+
htmlbegins = false # (Boolean) Flag for HTML part
|
118
|
+
v = nil
|
119
|
+
|
120
|
+
hasdivided.each do |e|
|
121
|
+
if readcursor.zero?
|
122
|
+
# Beginning of the bounce message or delivery status part
|
123
|
+
if e =~ Re1[:begin]
|
124
|
+
readcursor |= Indicators[:deliverystatus]
|
125
|
+
next
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
if readcursor & Indicators[:'message-rfc822'] == 0
|
130
|
+
# Beginning of the original message part
|
131
|
+
if e =~ Re1[:rfc822]
|
132
|
+
readcursor |= Indicators[:'message-rfc822']
|
133
|
+
next
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
if readcursor & Indicators[:'message-rfc822'] > 0
|
138
|
+
# After "message/rfc822"
|
139
|
+
if e.empty?
|
140
|
+
blanklines += 1
|
141
|
+
break if blanklines > 1
|
142
|
+
next
|
143
|
+
end
|
144
|
+
rfc822list << e
|
145
|
+
|
146
|
+
else
|
147
|
+
# Before "message/rfc822"
|
148
|
+
next if readcursor & Indicators[:deliverystatus] == 0
|
149
|
+
next if e.empty?
|
150
|
+
|
151
|
+
# kijitora@example.com<mailto:kijitora@example.com>
|
152
|
+
# The email address wasn=92t found at the destination domain. It might be mis=
|
153
|
+
# spelled or it might not exist any longer. Try retyping the address and rese=
|
154
|
+
# nding the message.
|
155
|
+
v = dscontents[-1]
|
156
|
+
|
157
|
+
if cv = e.match(/\A.+[@].+[<]mailto:(.+[@].+)[>]\z/)
|
158
|
+
# kijitora@example.com<mailto:kijitora@example.com>
|
159
|
+
if v['recipient']
|
160
|
+
# There are multiple recipient addresses in the message body.
|
161
|
+
dscontents << Sisimai::Bite.DELIVERYSTATUS
|
162
|
+
v = dscontents[-1]
|
163
|
+
end
|
164
|
+
v['recipient'] = cv[1]
|
165
|
+
recipients += 1
|
166
|
+
|
167
|
+
elsif cv = e.match(/\AGenerating server: (.+)\z/)
|
168
|
+
# Generating server: FFFFFFFFFFFF.e0.prod.outlook.com
|
169
|
+
connheader['lhost'] = cv[1].downcase
|
170
|
+
|
171
|
+
else
|
172
|
+
if endoferror
|
173
|
+
# After "Original message headers:"
|
174
|
+
if htmlbegins
|
175
|
+
# <html> .. </html>
|
176
|
+
htmlbegins = false if e =~ %r|\A[<]/html[>]|
|
177
|
+
next
|
178
|
+
end
|
179
|
+
|
180
|
+
if cv = e.match(/\A[Aa]ction:[ ]*(.+)\z/)
|
181
|
+
# Action: failed
|
182
|
+
v['action'] = cv[1].downcase
|
183
|
+
|
184
|
+
elsif cv = e.match(/\A[Ss]tatus:[ ]*(\d[.]\d+[.]\d+)/)
|
185
|
+
# Status:5.2.0
|
186
|
+
v['status'] = cv[1]
|
187
|
+
|
188
|
+
elsif cv = e.match(/\A[Rr]eporting-MTA:[ ]*(?:DNS|dns);[ ]*(.+)\z/)
|
189
|
+
# Reporting-MTA: dns;BLU004-OMC3S13.hotmail.example.com
|
190
|
+
connheader['lhost'] = cv[1].downcase
|
191
|
+
|
192
|
+
elsif cv = e.match(/\A[Rr]eceived-[Ff]rom-MTA:[ ]*(?:DNS|dns);[ ]*(.+)\z/)
|
193
|
+
# Reporting-MTA: dns;BLU004-OMC3S13.hotmail.example.com
|
194
|
+
connheader['rhost'] = cv[1].downcase
|
195
|
+
|
196
|
+
elsif cv = e.match(/\A[Aa]rrival-[Dd]ate:[ ]*(.+)\z/)
|
197
|
+
# Arrival-Date: Wed, 29 Apr 2009 16:03:18 +0900
|
198
|
+
next if connheader['date']
|
199
|
+
connheader['date'] = cv[1]
|
200
|
+
|
201
|
+
else
|
202
|
+
htmlbegins = true if e =~ /\A[<]html[>]/
|
203
|
+
end
|
204
|
+
|
205
|
+
else
|
206
|
+
if e =~ Re1[:error]
|
207
|
+
# Diagnostic information for administrators:
|
208
|
+
v['diagnosis'] = e
|
209
|
+
else
|
210
|
+
# kijitora@example.com
|
211
|
+
# Remote Server returned '550 5.1.10 RESOLVER.ADR.RecipientNotFound; Recipien=
|
212
|
+
# t not found by SMTP address lookup'
|
213
|
+
next unless v['diagnosis']
|
214
|
+
if e =~ Re1[:eoerr]
|
215
|
+
# Original message headers:
|
216
|
+
endoferror = true
|
217
|
+
next
|
218
|
+
end
|
219
|
+
v['diagnosis'] += ' ' + e
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
return nil if recipients.zero?
|
228
|
+
require 'sisimai/string'
|
229
|
+
require 'sisimai/smtp/status'
|
230
|
+
|
231
|
+
dscontents.map do |e|
|
232
|
+
# Set default values if each value is empty.
|
233
|
+
connheader.each_key { |a| e[a] ||= connheader[a] || '' }
|
234
|
+
|
235
|
+
e['agent'] = self.smtpagent
|
236
|
+
e['status'] ||= ''
|
237
|
+
e['diagnosis'] = Sisimai::String.sweep(e['diagnosis']) || ''
|
238
|
+
|
239
|
+
if e['status'].empty? || e['status'] =~ /\A\d[.]0[.]0\z/
|
240
|
+
# There is no value of Status header or the value is 5.0.0, 4.0.0
|
241
|
+
pseudostatus = Sisimai::SMTP::Status.find(e['diagnosis'])
|
242
|
+
e['status'] = pseudostatus if pseudostatus.size > 0
|
243
|
+
end
|
244
|
+
|
245
|
+
if e['status']
|
246
|
+
CodeTable.each_key do |f|
|
247
|
+
# Try to match with each key as a regular expression
|
248
|
+
next unless e['status'] =~ f
|
249
|
+
e['reason'] = CodeTable[f]
|
250
|
+
break
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
rfc822part = Sisimai::RFC5322.weedout(rfc822list)
|
256
|
+
return { 'ds' => dscontents, 'rfc822' => rfc822part }
|
257
|
+
end
|
258
|
+
|
259
|
+
end
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
@@ -0,0 +1,192 @@
|
|
1
|
+
module Sisimai::Bite::Email
|
2
|
+
module OpenSMTPD
|
3
|
+
# Sisimai::Bite::Email::OpenSMTPD parses a bounce email which created by
|
4
|
+
# OpenSMTPD. Methods in the module are called from only Sisimai::Message.
|
5
|
+
class << self
|
6
|
+
# Imported from p5-Sisimail/lib/Sisimai/Bite/Email/OpenSMTPD.pm
|
7
|
+
require 'sisimai/bite/email'
|
8
|
+
|
9
|
+
Re0 = {
|
10
|
+
:from => %r/\AMailer Daemon [<][^ ]+[@]/,
|
11
|
+
:subject => %r/\ADelivery status notification/,
|
12
|
+
:received => %r/[ ][(]OpenSMTPD[)][ ]with[ ]/,
|
13
|
+
}
|
14
|
+
# http://www.openbsd.org/cgi-bin/man.cgi?query=smtpd&sektion=8
|
15
|
+
# opensmtpd-5.4.2p1/smtpd/
|
16
|
+
# bounce.c/317:#define NOTICE_INTRO \
|
17
|
+
# bounce.c/318: " Hi!\n\n" \
|
18
|
+
# bounce.c/319: " This is the MAILER-DAEMON, please DO NOT REPLY to this e-mail.\n"
|
19
|
+
# bounce.c/320:
|
20
|
+
# bounce.c/321:const char *notice_error =
|
21
|
+
# bounce.c/322: " An error has occurred while attempting to deliver a message for\n"
|
22
|
+
# bounce.c/323: " the following list of recipients:\n\n";
|
23
|
+
# bounce.c/324:
|
24
|
+
# bounce.c/325:const char *notice_warning =
|
25
|
+
# bounce.c/326: " A message is delayed for more than %s for the following\n"
|
26
|
+
# bounce.c/327: " list of recipients:\n\n";
|
27
|
+
# bounce.c/328:
|
28
|
+
# bounce.c/329:const char *notice_warning2 =
|
29
|
+
# bounce.c/330: " Please note that this is only a temporary failure report.\n"
|
30
|
+
# bounce.c/331: " The message is kept in the queue for up to %s.\n"
|
31
|
+
# bounce.c/332: " You DO NOT NEED to re-send the message to these recipients.\n\n";
|
32
|
+
# bounce.c/333:
|
33
|
+
# bounce.c/334:const char *notice_success =
|
34
|
+
# bounce.c/335: " Your message was successfully delivered to these recipients.\n\n";
|
35
|
+
# bounce.c/336:
|
36
|
+
# bounce.c/337:const char *notice_relay =
|
37
|
+
# bounce.c/338: " Your message was relayed to these recipients.\n\n";
|
38
|
+
# bounce.c/339:
|
39
|
+
Re1 = {
|
40
|
+
:begin => %r/\A[ \t]*This is the MAILER-DAEMON, please DO NOT REPLY to this e[-]?mail[.]\z/,
|
41
|
+
:rfc822 => %r/\A[ \t]*Below is a copy of the original message:\z/,
|
42
|
+
:endof => %r/\A__END_OF_EMAIL_MESSAGE__\z/,
|
43
|
+
}
|
44
|
+
ReFailure = {
|
45
|
+
expired: %r{
|
46
|
+
# smtpd/queue.c:221| envelope_set_errormsg(&evp, "Envelope expired");
|
47
|
+
Envelope[ ]expired
|
48
|
+
}x,
|
49
|
+
hostunknown: %r{(?:
|
50
|
+
# smtpd/mta.c:976| relay->failstr = "Invalid domain name";
|
51
|
+
Invalid[ ]domain[ ]name
|
52
|
+
# smtpd/mta.c:980| relay->failstr = "Domain does not exist";
|
53
|
+
|Domain[ ]does[ ]not[ ]exist
|
54
|
+
)
|
55
|
+
}x,
|
56
|
+
notaccept: %r{
|
57
|
+
# smtp/mta.c:1085| relay->failstr = "Destination seem to reject all mails";
|
58
|
+
Destination[ ]seem[ ]to[ ]reject[ ]all[ ]mails
|
59
|
+
}x,
|
60
|
+
networkerror: %r{(?>
|
61
|
+
# smtpd/mta.c:972| relay->failstr = "Temporary failure in MX lookup";
|
62
|
+
Address[ ]family[ ]mismatch[ ]on[ ]destination[ ]MXs
|
63
|
+
|All[ ]routes[ ]to[ ]destination[ ]blocked
|
64
|
+
|bad[ ]DNS[ ]lookup[ ]error[ ]code
|
65
|
+
|Could[ ]not[ ]retrieve[ ]source[ ]address
|
66
|
+
|Loop[ ]detected
|
67
|
+
|Network[ ]error[ ]on[ ]destination[ ]MXs
|
68
|
+
|No[ ](?>
|
69
|
+
MX[ ]found[ ]for[ ](?:domain|destination)
|
70
|
+
|valid[ ]route[ ]to[ ](?:remote[ ]MX|destination)
|
71
|
+
)
|
72
|
+
|Temporary[ ]failure[ ]in[ ]MX[ ]lookup
|
73
|
+
)
|
74
|
+
}x,
|
75
|
+
securityerror: %r{
|
76
|
+
# smtpd/mta.c:1013| relay->failstr = "Could not retrieve credentials";
|
77
|
+
Could[ ]not[ ]retrieve[ ]credentials
|
78
|
+
}x,
|
79
|
+
}
|
80
|
+
Indicators = Sisimai::Bite::Email.INDICATORS
|
81
|
+
|
82
|
+
def description; return 'OpenSMTPD'; end
|
83
|
+
def smtpagent; return Sisimai::Bite.smtpagent(self); end
|
84
|
+
def headerlist; return []; end
|
85
|
+
def pattern; return Re0; end
|
86
|
+
|
87
|
+
# Parse bounce messages from OpenSMTPD
|
88
|
+
# @param [Hash] mhead Message headers of a bounce email
|
89
|
+
# @options mhead [String] from From header
|
90
|
+
# @options mhead [String] date Date header
|
91
|
+
# @options mhead [String] subject Subject header
|
92
|
+
# @options mhead [Array] received Received headers
|
93
|
+
# @options mhead [String] others Other required headers
|
94
|
+
# @param [String] mbody Message body of a bounce email
|
95
|
+
# @return [Hash, Nil] Bounce data list and message/rfc822
|
96
|
+
# part or nil if it failed to parse or
|
97
|
+
# the arguments are missing
|
98
|
+
def scan(mhead, mbody)
|
99
|
+
return nil unless mhead
|
100
|
+
return nil unless mbody
|
101
|
+
return nil unless mhead['subject'] =~ Re0[:subject]
|
102
|
+
return nil unless mhead['from'] =~ Re0[:from]
|
103
|
+
return nil unless mhead['received'].find { |a| a =~ Re0[:received] }
|
104
|
+
|
105
|
+
dscontents = [Sisimai::Bite.DELIVERYSTATUS]
|
106
|
+
hasdivided = mbody.split("\n")
|
107
|
+
rfc822list = [] # (Array) Each line in message/rfc822 part string
|
108
|
+
blanklines = 0 # (Integer) The number of blank lines
|
109
|
+
readcursor = 0 # (Integer) Points the current cursor position
|
110
|
+
recipients = 0 # (Integer) The number of 'Final-Recipient' header
|
111
|
+
v = nil
|
112
|
+
|
113
|
+
hasdivided.each do |e|
|
114
|
+
if readcursor.zero?
|
115
|
+
# Beginning of the bounce message or delivery status part
|
116
|
+
if e =~ Re1[:begin]
|
117
|
+
readcursor |= Indicators[:deliverystatus]
|
118
|
+
next
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
if readcursor & Indicators[:'message-rfc822'] == 0
|
123
|
+
# Beginning of the original message part
|
124
|
+
if e =~ Re1[:rfc822]
|
125
|
+
readcursor |= Indicators[:'message-rfc822']
|
126
|
+
next
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
if readcursor & Indicators[:'message-rfc822'] > 0
|
131
|
+
# After "message/rfc822"
|
132
|
+
if e.empty?
|
133
|
+
blanklines += 1
|
134
|
+
break if blanklines > 1
|
135
|
+
next
|
136
|
+
end
|
137
|
+
rfc822list << e
|
138
|
+
|
139
|
+
else
|
140
|
+
# Before "message/rfc822"
|
141
|
+
next if readcursor & Indicators[:deliverystatus] == 0
|
142
|
+
next if e.empty?
|
143
|
+
|
144
|
+
# Hi!
|
145
|
+
#
|
146
|
+
# This is the MAILER-DAEMON, please DO NOT REPLY to this e-mail.
|
147
|
+
#
|
148
|
+
# An error has occurred while attempting to deliver a message for
|
149
|
+
# the following list of recipients:
|
150
|
+
#
|
151
|
+
# kijitora@example.jp: 550 5.2.2 <kijitora@example>... Mailbox Full
|
152
|
+
#
|
153
|
+
# Below is a copy of the original message:
|
154
|
+
v = dscontents[-1]
|
155
|
+
|
156
|
+
if cv = e.match(/\A([^ ]+?[@][^ ]+?):?[ ](.+)\z/)
|
157
|
+
# kijitora@example.jp: 550 5.2.2 <kijitora@example>... Mailbox Full
|
158
|
+
if v['recipient']
|
159
|
+
# There are multiple recipient addresses in the message body.
|
160
|
+
dscontents << Sisimai::Bite.DELIVERYSTATUS
|
161
|
+
v = dscontents[-1]
|
162
|
+
end
|
163
|
+
v['recipient'] = cv[1]
|
164
|
+
v['diagnosis'] = cv[2]
|
165
|
+
recipients += 1
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
return nil if recipients.zero?
|
170
|
+
require 'sisimai/string'
|
171
|
+
|
172
|
+
dscontents.map do |e|
|
173
|
+
e['agent'] = self.smtpagent
|
174
|
+
e['diagnosis'] = Sisimai::String.sweep(e['diagnosis'])
|
175
|
+
|
176
|
+
ReFailure.each_key do |r|
|
177
|
+
# Verify each regular expression of session errors
|
178
|
+
next unless e['diagnosis'] =~ ReFailure[r]
|
179
|
+
e['reason'] = r.to_s
|
180
|
+
break
|
181
|
+
end
|
182
|
+
e.each_key { |a| e[a] ||= '' }
|
183
|
+
end
|
184
|
+
|
185
|
+
rfc822part = Sisimai::RFC5322.weedout(rfc822list)
|
186
|
+
return { 'ds' => dscontents, 'rfc822' => rfc822part }
|
187
|
+
end
|
188
|
+
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|