sisimai 4.22.3-java → 4.22.4-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/.travis.yml +1 -1
- data/Benchmarks.mk +54 -0
- data/ChangeLog.md +23 -2
- data/Developers.mk +42 -35
- data/Makefile +10 -0
- data/README-JA.md +13 -13
- data/README.md +14 -14
- data/lib/sisimai.rb +12 -18
- data/lib/sisimai/address.rb +64 -82
- data/lib/sisimai/arf.rb +27 -42
- data/lib/sisimai/bite/email.rb +2 -4
- data/lib/sisimai/bite/email/activehunter.rb +12 -17
- data/lib/sisimai/bite/email/amazonses.rb +30 -48
- data/lib/sisimai/bite/email/amazonworkmail.rb +20 -27
- data/lib/sisimai/bite/email/aol.rb +27 -35
- data/lib/sisimai/bite/email/apachejames.rb +17 -28
- data/lib/sisimai/bite/email/bigfoot.rb +20 -33
- data/lib/sisimai/bite/email/biglobe.rb +15 -24
- data/lib/sisimai/bite/email/courier.rb +37 -61
- data/lib/sisimai/bite/email/domino.rb +19 -28
- data/lib/sisimai/bite/email/einsundeins.rb +20 -34
- data/lib/sisimai/bite/email/exchange2003.rb +25 -43
- data/lib/sisimai/bite/email/exchange2007.rb +15 -23
- data/lib/sisimai/bite/email/exim.rb +101 -120
- data/lib/sisimai/bite/email/ezweb.rb +28 -44
- data/lib/sisimai/bite/email/facebook.rb +26 -37
- data/lib/sisimai/bite/email/fml.rb +11 -20
- data/lib/sisimai/bite/email/gmx.rb +17 -27
- data/lib/sisimai/bite/email/google.rb +19 -29
- data/lib/sisimai/bite/email/gsuite.rb +39 -48
- data/lib/sisimai/bite/email/imailserver.rb +25 -39
- data/lib/sisimai/bite/email/interscanmss.rb +19 -26
- data/lib/sisimai/bite/email/kddi.rb +20 -33
- data/lib/sisimai/bite/email/mailfoundry.rb +14 -24
- data/lib/sisimai/bite/email/mailmarshalsmtp.rb +15 -24
- data/lib/sisimai/bite/email/mailru.rb +40 -59
- data/lib/sisimai/bite/email/mcafee.rb +21 -35
- data/lib/sisimai/bite/email/messagelabs.rb +23 -38
- data/lib/sisimai/bite/email/messagingserver.rb +15 -27
- data/lib/sisimai/bite/email/mfilter.rb +19 -28
- data/lib/sisimai/bite/email/mxlogic.rb +31 -49
- data/lib/sisimai/bite/email/notes.rb +16 -24
- data/lib/sisimai/bite/email/office365.rb +29 -38
- data/lib/sisimai/bite/email/opensmtpd.rb +50 -67
- data/lib/sisimai/bite/email/outlook.rb +24 -36
- data/lib/sisimai/bite/email/postfix.rb +33 -42
- data/lib/sisimai/bite/email/qmail.rb +44 -59
- data/lib/sisimai/bite/email/receivingses.rb +28 -36
- data/lib/sisimai/bite/email/sendgrid.rb +28 -37
- data/lib/sisimai/bite/email/sendmail.rb +35 -51
- data/lib/sisimai/bite/email/surfcontrol.rb +17 -25
- data/lib/sisimai/bite/email/userdefined.rb +17 -28
- data/lib/sisimai/bite/email/v5sendmail.rb +32 -41
- data/lib/sisimai/bite/email/verizon.rb +31 -56
- data/lib/sisimai/bite/email/x1.rb +11 -18
- data/lib/sisimai/bite/email/x2.rb +11 -23
- data/lib/sisimai/bite/email/x3.rb +10 -19
- data/lib/sisimai/bite/email/x4.rb +46 -65
- data/lib/sisimai/bite/email/x5.rb +26 -37
- data/lib/sisimai/bite/email/yahoo.rb +11 -19
- data/lib/sisimai/bite/email/yandex.rb +19 -30
- data/lib/sisimai/bite/email/zoho.rb +21 -30
- data/lib/sisimai/bite/json.rb +1 -2
- data/lib/sisimai/bite/json/amazonses.rb +20 -25
- data/lib/sisimai/bite/json/sendgrid.rb +1 -1
- data/lib/sisimai/data.rb +36 -55
- data/lib/sisimai/data/json.rb +3 -3
- data/lib/sisimai/data/yaml.rb +1 -1
- data/lib/sisimai/datetime.rb +5 -21
- data/lib/sisimai/mail.rb +4 -6
- data/lib/sisimai/mail/maildir.rb +1 -1
- data/lib/sisimai/mda.rb +41 -44
- data/lib/sisimai/message.rb +2 -3
- data/lib/sisimai/message/email.rb +42 -52
- data/lib/sisimai/message/json.rb +7 -7
- data/lib/sisimai/mime.rb +25 -23
- data/lib/sisimai/order/email.rb +2 -2
- data/lib/sisimai/order/json.rb +2 -7
- data/lib/sisimai/reason.rb +41 -46
- data/lib/sisimai/reason/blocked.rb +60 -71
- data/lib/sisimai/reason/contenterror.rb +4 -8
- data/lib/sisimai/reason/delivered.rb +1 -3
- data/lib/sisimai/reason/exceedlimit.rb +10 -20
- data/lib/sisimai/reason/expired.rb +5 -9
- data/lib/sisimai/reason/feedback.rb +1 -3
- data/lib/sisimai/reason/filtered.rb +19 -38
- data/lib/sisimai/reason/hasmoved.rb +5 -8
- data/lib/sisimai/reason/hostunknown.rb +11 -18
- data/lib/sisimai/reason/mailboxfull.rb +14 -24
- data/lib/sisimai/reason/mailererror.rb +3 -5
- data/lib/sisimai/reason/mesgtoobig.rb +15 -25
- data/lib/sisimai/reason/networkerror.rb +8 -10
- data/lib/sisimai/reason/norelaying.rb +9 -14
- data/lib/sisimai/reason/notaccept.rb +9 -21
- data/lib/sisimai/reason/onhold.rb +3 -8
- data/lib/sisimai/reason/policyviolation.rb +8 -10
- data/lib/sisimai/reason/rejected.rb +36 -49
- data/lib/sisimai/reason/securityerror.rb +11 -13
- data/lib/sisimai/reason/spamdetected.rb +23 -37
- data/lib/sisimai/reason/suspend.rb +9 -10
- data/lib/sisimai/reason/syntaxerror.rb +3 -4
- data/lib/sisimai/reason/systemerror.rb +7 -9
- data/lib/sisimai/reason/systemfull.rb +2 -4
- data/lib/sisimai/reason/toomanyconn.rb +17 -30
- data/lib/sisimai/reason/undefined.rb +1 -3
- data/lib/sisimai/reason/userunknown.rb +28 -38
- data/lib/sisimai/reason/vacation.rb +4 -6
- data/lib/sisimai/reason/virusdetected.rb +4 -6
- data/lib/sisimai/rfc2606.rb +1 -2
- data/lib/sisimai/rfc3464.rb +87 -101
- data/lib/sisimai/rfc3834.rb +29 -39
- data/lib/sisimai/rfc5322.rb +17 -24
- data/lib/sisimai/rhost.rb +10 -7
- data/lib/sisimai/rhost/exchangeonline.rb +124 -255
- data/lib/sisimai/rhost/franceptt.rb +2 -2
- data/lib/sisimai/rhost/godaddy.rb +12 -25
- data/lib/sisimai/rhost/googleapps.rb +82 -183
- data/lib/sisimai/smtp.rb +4 -4
- data/lib/sisimai/smtp/error.rb +8 -8
- data/lib/sisimai/smtp/reply.rb +1 -1
- data/lib/sisimai/smtp/status.rb +1 -0
- data/lib/sisimai/string.rb +5 -7
- data/lib/sisimai/version.rb +1 -1
- data/set-of-emails/README.md +1 -1
- data/set-of-emails/maildir/bsd/README.md +50 -50
- data/sisimai-java.gemspec +1 -1
- data/sisimai.gemspec +1 -1
- metadata +4 -4
- data/lib/sisimai/skeleton.rb +0 -43
data/lib/sisimai/smtp/reply.rb
CHANGED
data/lib/sisimai/smtp/status.rb
CHANGED
@@ -580,6 +580,7 @@ module Sisimai
|
|
580
580
|
:'4.7.15' => 'securityerror', # Priority Level is too low
|
581
581
|
:'4.7.16' => 'mesgtoobig', # Message is too big for the specified priority
|
582
582
|
:'4.7.24' => 'securityerror', # SPF validation error
|
583
|
+
:'4.7.25' => 'blocked', # Reverse DNS validation failed
|
583
584
|
# ------------------------------------------------------------------------------
|
584
585
|
:'5.1.0' => 'userunknown', # Other address status
|
585
586
|
:'5.1.1' => 'userunknown', # Bad destination mailbox address
|
data/lib/sisimai/string.rb
CHANGED
@@ -6,9 +6,7 @@ module Sisimai
|
|
6
6
|
# End of email message as a sentinel for parsing bounce messages
|
7
7
|
# @private
|
8
8
|
# @return [String] Fixed length string like a constant
|
9
|
-
def EOM
|
10
|
-
return '__END_OF_EMAIL_MESSAGE__'
|
11
|
-
end
|
9
|
+
def EOM; return '__END_OF_EMAIL_MESSAGE__'; end
|
12
10
|
|
13
11
|
# Create message token from addresser and recipient
|
14
12
|
# @param [String] addr1 Sender address
|
@@ -53,7 +51,7 @@ module Sisimai
|
|
53
51
|
argv1 = argv1.chomp
|
54
52
|
argv1 = argv1.squeeze(' ')
|
55
53
|
argv1 = argv1.delete("\t")
|
56
|
-
argv1 = argv1.
|
54
|
+
argv1 = argv1.strip
|
57
55
|
argv1 = argv1.sub(/ [-]{2,}[^ \t].+\z/, '')
|
58
56
|
|
59
57
|
return argv1
|
@@ -68,8 +66,8 @@ module Sisimai
|
|
68
66
|
|
69
67
|
plain = argv1
|
70
68
|
match = {
|
71
|
-
:
|
72
|
-
:
|
69
|
+
html: %r|<html[ >].+?</html>|sim,
|
70
|
+
body: %r|<head>.+</head>.*<body[ >].+</body>|sim,
|
73
71
|
}
|
74
72
|
|
75
73
|
if loose || plain =~ match[:html] || plain =~ match[:body]
|
@@ -91,7 +89,7 @@ module Sisimai
|
|
91
89
|
|
92
90
|
if argv1.size > plain.size
|
93
91
|
plain = plain.squeeze(' ')
|
94
|
-
plain
|
92
|
+
plain << "\n"
|
95
93
|
end
|
96
94
|
end
|
97
95
|
|
data/lib/sisimai/version.rb
CHANGED
data/set-of-emails/README.md
CHANGED
@@ -30,7 +30,7 @@ in this repository are read from `make test` at p5-Sisimai and rb-Sisimai.
|
|
30
30
|
See Also
|
31
31
|
========
|
32
32
|
* __Sisimai Project__ | [github.com/sisimai](https://github.com/sisimai)
|
33
|
-
* __libsisimai.org__ | [Sisimai — A successor to bounceHammer, Library to parse error mails](
|
33
|
+
* __libsisimai.org__ | [Sisimai — A successor to bounceHammer, Library to parse error mails](https://libsisimai.org/)
|
34
34
|
* __Perl Verson__ | [Perl version of Sisimai(Stable)](https://github.com/sisimai/p5-Sisimai)
|
35
35
|
* __Ruby verson__ | [Ruby version of Sisimai(Under the development)](https://github.com/sisimai/rb-Sisimai)
|
36
36
|
|
@@ -13,173 +13,173 @@ Sisimai::ARF
|
|
13
13
|
|
14
14
|
Sisimai::MTA::Exchange2003
|
15
15
|
--------------------------------------------------------------------------------
|
16
|
-
*
|
16
|
+
* email-exchange-06.eml
|
17
17
|
* mailman-2.1.15/tests/bounces/groupwise_01.txt
|
18
18
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
19
19
|
|
20
20
|
Sisimai::MTA::Exchange2007
|
21
21
|
--------------------------------------------------------------------------------
|
22
|
-
*
|
22
|
+
* email-exchange2007-02.eml
|
23
23
|
* [message-too-large.msg](https://github.com/rjbs/Mail-DeliveryStatus-BounceParser/blob/master/t/corpus/message-too-large.msg)
|
24
24
|
* Copyright (C) 2003-2006 IC Group, Inc. | GPLv2
|
25
25
|
|
26
|
-
*
|
26
|
+
* email-exchange2007-03.eml
|
27
27
|
* https://github.com/LoneStarInternet/mail_manager/tree/master/spec/test_app/spec/support/files/bounce-mail-box-full.txt
|
28
28
|
* Copyright (c) 2015 Lone Star Internet, Inc. | MIT
|
29
29
|
|
30
30
|
Sisimai::MTA::Exim
|
31
31
|
--------------------------------------------------------------------------------
|
32
|
-
*
|
32
|
+
* email-exim-09.eml
|
33
33
|
* [13.eml](https://github.com/prasad83/node-bounce-handler/blob/master/eml/13.eml)
|
34
34
|
* Copyright (c) 2014 prasad83 | The MIT License
|
35
35
|
|
36
|
-
*
|
36
|
+
* email-exim-10.eml
|
37
37
|
* [34.eml](https://github.com/prasad83/node-bounce-handler/blob/master/eml/34.eml)
|
38
38
|
* Copyright (c) 2014 prasad83 | The MIT License
|
39
39
|
|
40
|
-
*
|
40
|
+
* email-exim-11.eml
|
41
41
|
* [44.eml](https://github.com/prasad83/node-bounce-handler/blob/master/eml/44.eml)
|
42
42
|
* Copyright (c) 2014 prasad83 | The MIT License
|
43
43
|
|
44
|
-
*
|
44
|
+
* email-exim-12.eml
|
45
45
|
* [0224.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0224.CALLER)
|
46
46
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
47
47
|
|
48
|
-
*
|
48
|
+
* email-exim-13.eml
|
49
49
|
* [0237.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0237.CALLER)
|
50
50
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
51
51
|
|
52
|
-
*
|
52
|
+
* email-exim-14.eml
|
53
53
|
* [9001.CALLER](https://github.com/Exim/exim/blob/master/test/mail/9001.CALLER)
|
54
54
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
55
55
|
|
56
|
-
*
|
56
|
+
* email-exim-15.eml
|
57
57
|
* [0536.oksender](https://github.com/Exim/exim/blob/master/test/mail/0536.oksender)
|
58
58
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
59
59
|
|
60
|
-
*
|
60
|
+
* email-exim-16.eml
|
61
61
|
* [0522.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0522.CALLER)
|
62
62
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
63
63
|
|
64
|
-
*
|
64
|
+
* email-exim-17.eml
|
65
65
|
* [0310.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0310.CALLER)
|
66
66
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
67
67
|
|
68
|
-
*
|
68
|
+
* email-exim-18.eml
|
69
69
|
* [0280.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0280.CALLER)
|
70
70
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
71
71
|
|
72
|
-
*
|
72
|
+
* email-exim-19.eml
|
73
73
|
* [0174.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0174.CALLER)
|
74
74
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
75
75
|
|
76
|
-
*
|
76
|
+
* email-exim-20.eml
|
77
77
|
* [0531.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0531.CALLER)
|
78
78
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
79
79
|
|
80
|
-
*
|
80
|
+
* email-exim-21.eml
|
81
81
|
* [0461.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0461.CALLER)
|
82
82
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
83
83
|
|
84
|
-
*
|
84
|
+
* email-exim-22.eml
|
85
85
|
* [0321.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0321.CALLER)
|
86
86
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
87
87
|
|
88
|
-
*
|
88
|
+
* email-exim-23.eml
|
89
89
|
* [0253.lmn](https://github.com/Exim/exim/blob/master/test/mail/0253.lmn)
|
90
90
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
91
91
|
|
92
|
-
*
|
92
|
+
* email-exim-24.eml
|
93
93
|
* [0136.forwarder](https://github.com/Exim/exim/blob/master/test/mail/0136.forwarder)
|
94
94
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
95
95
|
|
96
|
-
*
|
96
|
+
* email-exim-25.eml
|
97
97
|
* [0233.me](https://github.com/Exim/exim/blob/master/test/mail/0233.me)
|
98
98
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
99
99
|
|
100
|
-
*
|
100
|
+
* email-exim-26.eml
|
101
101
|
* [0015.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0015.CALLER)
|
102
102
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
103
103
|
|
104
|
-
*
|
104
|
+
* email-exim-27.eml
|
105
105
|
* [0211.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0211.CALLER)
|
106
106
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
107
107
|
|
108
|
-
*
|
108
|
+
* email-exim-28.eml
|
109
109
|
* [0226.CALLER](https://github.com/Exim/exim/blob/master/test/mail/0226.CALLER)
|
110
110
|
* Copyright (c) 1995 - 2012 University of Cambridge.
|
111
111
|
|
112
112
|
Sisimai::MTA::IMailServer
|
113
113
|
--------------------------------------------------------------------------------
|
114
|
-
*
|
114
|
+
* email-imailserver-05.eml
|
115
115
|
* mailman-2.1.15/tests/bounces/smtp32_03.txt
|
116
116
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
117
117
|
|
118
118
|
Sisimai::MTA::InterScanMSS
|
119
119
|
--------------------------------------------------------------------------------
|
120
|
-
*
|
120
|
+
* email-interscanmss-02.eml
|
121
121
|
* mailman-2.1.15/tests/bounces/simple_15.txt
|
122
122
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
123
123
|
|
124
124
|
Sisimai::MTA::Notes
|
125
125
|
--------------------------------------------------------------------------------
|
126
|
-
*
|
126
|
+
* email-notes-04.eml
|
127
127
|
* [msg00154.html](http://osdir.com/ml/org.telecom.india-gii/2003-02/msg00154.html)
|
128
128
|
* Copyrighted (c) 2000-2015, but we're happy to let you use what you wish with attribution. OSDir.com
|
129
129
|
|
130
130
|
Sisimai::MTA::Postfix
|
131
131
|
--------------------------------------------------------------------------------
|
132
|
-
*
|
132
|
+
* email-postfix-18.eml
|
133
133
|
* [relay_failed.eml](https://github.com/choonkeat/deliveryboy/blob/master/spec/fixtures/bounce_cases/relay_failed.eml)
|
134
134
|
* Copyright (c) 2011 Chew Choon Keat | The MIT License
|
135
135
|
|
136
|
-
*
|
136
|
+
* email-postfix-19.eml
|
137
137
|
* [testfile.eml](https://github.com/prasad83/node-bounce-handler/blob/master/eml/testfile.eml)
|
138
138
|
* Copyright (c) 2011 Chew Choon Keat | The MIT License
|
139
139
|
|
140
|
-
*
|
140
|
+
* email-postfix-20.eml
|
141
141
|
* mailman-2.1.15/tests/bounces/postfix_05.txt
|
142
142
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
143
143
|
|
144
|
-
*
|
144
|
+
* email-postfix-22.eml
|
145
145
|
* https://github.com/LoneStarInternet/mail_manager/tree/master/spec/test_app/spec/support/files/bounce_400.txt
|
146
146
|
* Copyright (c) 2015 Lone Star Internet, Inc. | MIT
|
147
147
|
|
148
|
-
*
|
148
|
+
* email-postfix-23.eml
|
149
149
|
* https://github.com/LoneStarInternet/mail_manager/tree/master/spec/test_app/spec/support/files/bounce_500.txt
|
150
150
|
* Copyright (c) 2015 Lone Star Internet, Inc. | MIT
|
151
151
|
|
152
|
-
*
|
152
|
+
* email-postfix-24.eml
|
153
153
|
* https://github.com/LoneStarInternet/mail_manager/tree/master/spec/test_app/spec/support/files/bounce-invalid-address.txt
|
154
154
|
* Copyright (c) 2015 Lone Star Internet, Inc. | MIT
|
155
155
|
|
156
|
-
*
|
156
|
+
* email-postfix-25.eml
|
157
157
|
* https://github.com/LoneStarInternet/mail_manager/tree/master/spec/test_app/spec/support/files/bounce-smtp-timeout.txt
|
158
158
|
* Copyright (c) 2015 Lone Star Internet, Inc. | MIT
|
159
159
|
|
160
|
-
*
|
160
|
+
* email-postfix-26.eml
|
161
161
|
* https://github.com/LoneStarInternet/mail_manager/tree/master/spec/test_app/spec/support/files/bounce-unknown_domain.txt
|
162
162
|
* Copyright (c) 2015 Lone Star Internet, Inc. | MIT
|
163
163
|
|
164
|
-
*
|
164
|
+
* email-postfix-27.eml
|
165
165
|
* https://github.com/rgl/MailBounceDetector/blob/master/MailBounceDetector.Tests/Fixtures/bounce_postfix_non_existing_mailbox.eml
|
166
166
|
* Copyright (c) 2015 Rui Lopes (ruilopes.com) | MIT
|
167
167
|
|
168
168
|
Sisimai::MTA::qmail
|
169
169
|
--------------------------------------------------------------------------------
|
170
|
-
*
|
170
|
+
* email-qmail-09.eml
|
171
171
|
* mailman-2.1.15/tests/bounces/qmail_01.txt
|
172
172
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
173
173
|
|
174
|
-
*
|
174
|
+
* email-qmail-10.eml
|
175
175
|
* https://github.com/rgl/MailBounceDetector/blob/master/MailBounceDetector.Tests/Fixtures/bounce_qmail_extra_lines_between_recipient_paragraphs.eml
|
176
176
|
* Copyright (c) 2015 Rui Lopes (ruilopes.com) | MIT
|
177
177
|
|
178
|
-
*
|
178
|
+
* email-qmail-11.eml
|
179
179
|
* https://github.com/rgl/MailBounceDetector/blob/master/MailBounceDetector.Tests/Fixtures/bounce_qmail_multipart_alternative_non_existing_mailbox.eml
|
180
180
|
* Copyright (c) 2015 Rui Lopes (ruilopes.com) | MIT
|
181
181
|
|
182
|
-
*
|
182
|
+
* email-qmail-12.eml
|
183
183
|
* https://github.com/rgl/MailBounceDetector/blob/master/MailBounceDetector.Tests/Fixtures/bounce_qmail_no_host_found.eml
|
184
184
|
* Copyright (c) 2015 Rui Lopes (ruilopes.com) | MIT
|
185
185
|
|
@@ -273,55 +273,55 @@ Sisimai::RFC3834
|
|
273
273
|
|
274
274
|
Sisimai::MTA::Sendmail
|
275
275
|
--------------------------------------------------------------------------------
|
276
|
-
*
|
276
|
+
* email-sendmail-23.eml
|
277
277
|
* [DSN-spam.eml](https://github.com/sendgrid/go-gmime/blob/master/gmime/fixtures/DSN-spam.eml)
|
278
278
|
* Copyright (c) 2014, 2015 SendGrid Inc. | The MIT License
|
279
279
|
|
280
280
|
Sisimai::MSP::US::Google
|
281
281
|
--------------------------------------------------------------------------------
|
282
|
-
*
|
282
|
+
* email-google-12.eml
|
283
283
|
* mailman-2.1.15/tests/bounces/simple_17.txt
|
284
284
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
285
285
|
|
286
|
-
*
|
286
|
+
* email-google-13.eml
|
287
287
|
* mailman-2.1.15/tests/bounces/simple_28.txt
|
288
288
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
289
289
|
|
290
290
|
Sisimai::MSP::US::Outlook
|
291
291
|
--------------------------------------------------------------------------------
|
292
|
-
*
|
292
|
+
* email-outlook-09.eml
|
293
293
|
* [connection_timed_out.eml](https://github.com/choonkeat/deliveryboy/blob/master/spec/fixtures/bounce_cases/connection_timed_out.eml)
|
294
294
|
* Copyright (c) 2011 Chew Choon Keat | The MIT License
|
295
295
|
|
296
296
|
Sisimai::MTA::X2
|
297
297
|
--------------------------------------------------------------------------------
|
298
|
-
*
|
298
|
+
* email-x2-05.eml
|
299
299
|
* mailman-2.1.15/tests/bounces/yahoo_03.txt
|
300
300
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
301
301
|
|
302
302
|
Sisimai::MTA::X4
|
303
303
|
--------------------------------------------------------------------------------
|
304
|
-
*
|
304
|
+
* email-x4-01.eml
|
305
305
|
* [bounce-secureservers.net-mailfolder_is_full.eml](https://github.com/justingit/dada-mail/blob/master/dada/t/corpus/email_messages/bounce-secureservers.net-mailfolder_is_full.eml)
|
306
306
|
* Copyright (c) 1999 - 2015 Justin Simoni | GPL
|
307
307
|
|
308
|
-
*
|
308
|
+
* email-x4-02.eml
|
309
309
|
* mailman-2.1.15/tests/bounces/newmailru_01.txt
|
310
310
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
311
311
|
|
312
|
-
*
|
312
|
+
* email-x4-03.eml
|
313
313
|
* mailman-2.1.15/tests/bounces/qmail_03.txt
|
314
314
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
315
315
|
|
316
|
-
*
|
316
|
+
* email-x4-04.eml
|
317
317
|
* mailman-2.1.15/tests/bounces/qmail_04.txt
|
318
318
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
319
319
|
|
320
|
-
*
|
320
|
+
* email-x4-05.eml
|
321
321
|
* mailman-2.1.15/tests/bounces/qmail_05.txt
|
322
322
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
323
323
|
|
324
|
-
*
|
324
|
+
* email-x4-06.eml
|
325
325
|
* mailman-2.1.15/tests/bounces/qmail_06.txt
|
326
326
|
* Copyright (C) 1989, 1991 Free Software Foundation, Inc. | GPLv2
|
327
327
|
|
data/sisimai-java.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = 'Mail Analyzing Interface'
|
13
13
|
spec.description = 'Sisimai is a Ruby library for analyzing RFC5322 bounce emails and generating structured data from parsed results.'
|
14
|
-
spec.homepage = '
|
14
|
+
spec.homepage = 'https://libsisimai.org/'
|
15
15
|
spec.license = 'BSD-2-Clause'
|
16
16
|
spec.platform = "java"
|
17
17
|
|
data/sisimai.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = 'Mail Analyzing Interface'
|
13
13
|
spec.description = 'Sisimai is a Ruby library for analyzing RFC5322 bounce emails and generating structured data from parsed results.'
|
14
|
-
spec.homepage = '
|
14
|
+
spec.homepage = 'https://libsisimai.org/'
|
15
15
|
spec.license = 'BSD-2-Clause'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sisimai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.22.
|
4
|
+
version: 4.22.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- azumakuniyuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- ".rubocop.yml"
|
85
85
|
- ".travis.yml"
|
86
86
|
- ANALYTICAL-PRECISION
|
87
|
+
- Benchmarks.mk
|
87
88
|
- ChangeLog.md
|
88
89
|
- Developers.mk
|
89
90
|
- Gemfile
|
@@ -211,7 +212,6 @@ files:
|
|
211
212
|
- lib/sisimai/rhost/franceptt.rb
|
212
213
|
- lib/sisimai/rhost/godaddy.rb
|
213
214
|
- lib/sisimai/rhost/googleapps.rb
|
214
|
-
- lib/sisimai/skeleton.rb
|
215
215
|
- lib/sisimai/smtp.rb
|
216
216
|
- lib/sisimai/smtp/error.rb
|
217
217
|
- lib/sisimai/smtp/reply.rb
|
@@ -811,7 +811,7 @@ files:
|
|
811
811
|
- set-of-emails/to-be-parsed-for-test/README.md
|
812
812
|
- sisimai-java.gemspec
|
813
813
|
- sisimai.gemspec
|
814
|
-
homepage:
|
814
|
+
homepage: https://libsisimai.org/
|
815
815
|
licenses:
|
816
816
|
- BSD-2-Clause
|
817
817
|
metadata: {}
|
data/lib/sisimai/skeleton.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
module Sisimai
|
2
|
-
# Sisimai::Skeleton - Class for basic data structure of Sisimai
|
3
|
-
module Skeleton
|
4
|
-
class << self
|
5
|
-
# Imported from p5-Sisimail/lib/Sisimai/Skeleton.pm
|
6
|
-
|
7
|
-
# Flags for position variables
|
8
|
-
# @return [Hash] Position flag data
|
9
|
-
# @private
|
10
|
-
def INDICATORS
|
11
|
-
return {
|
12
|
-
:'deliverystatus' => (1 << 1),
|
13
|
-
:'message-rfc822' => (1 << 2),
|
14
|
-
}
|
15
|
-
end
|
16
|
-
|
17
|
-
# Data structure for parsed bounce messages
|
18
|
-
# @return [Hash] Data structure for delivery status
|
19
|
-
# @private
|
20
|
-
def DELIVERYSTATUS
|
21
|
-
return {
|
22
|
-
'spec' => nil, # Protocl specification
|
23
|
-
'date' => nil, # The value of Last-Attempt-Date header
|
24
|
-
'rhost' => nil, # The value of Remote-MTA header
|
25
|
-
'lhost' => nil, # The value of Received-From-MTA header
|
26
|
-
'alias' => nil, # The value of alias entry(RHS)
|
27
|
-
'agent' => nil, # MTA name
|
28
|
-
'action' => nil, # The value of Action header
|
29
|
-
'status' => nil, # The value of Status header
|
30
|
-
'reason' => nil, # Temporary reason of bounce
|
31
|
-
'command' => nil, # SMTP command in the message body
|
32
|
-
'replycode' => nil, # SMTP Reply code
|
33
|
-
'diagnosis' => nil, # The value of Diagnostic-Code header
|
34
|
-
'recipient' => nil, # The value of Final-Recipient header
|
35
|
-
'softbounce' => nil, # Soft bounce or not
|
36
|
-
'feedbacktype' => nil, # Feedback Type
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|