sisimai 4.25.1 → 4.25.2
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/ANALYTICAL-PRECISION +11 -11
- data/ChangeLog.md +11 -1
- data/README-JA.md +8 -8
- data/README.md +2 -2
- data/lib/sisimai/bite/email/ezweb.rb +0 -1
- data/lib/sisimai/mime.rb +20 -2
- data/lib/sisimai/version.rb +1 -1
- data/set-of-emails/maildir/bsd/email-ezweb-08.eml +0 -0
- data/set-of-emails/maildir/bsd/email-mfilter-04.eml +0 -0
- data/set-of-emails/maildir/bsd/email-sendmail-11.eml +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2d311426ed6176e59f5c1cafb974d80a35d05db
|
4
|
+
data.tar.gz: 17cc11c056e66fa52cd4ce9ecf8d6bc89de6b168
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0abaee072f4ebcbf0d1cd3d47a9f28bdefbdb30eb1ba987e92903edfb1f82bedfb7b07171dc78a0079d24bc645fff27288036f9e9d3cf141f82ebd80dc764d5
|
7
|
+
data.tar.gz: 767c12dfe36dcf5e78649da5bfa7959697659e7bc204c4b1ea58d7728880ce70842e6468b58e887fdb50393f7688b3a7dbd89b54ab9bea3de29bca5efa8b6eb1
|
data/.travis.yml
CHANGED
data/ANALYTICAL-PRECISION
CHANGED
@@ -10,18 +10,18 @@ Email::ApacheJames ...... 0/0006 0.0000 Java Apache Mail Enterprise Server
|
|
10
10
|
Email::Bigfoot .......... 3/0003 1.0000 Bigfoot: http://www.bigfoot.com
|
11
11
|
Email::Biglobe .......... 5/0007 0.7143 BIGLOBE: http://www.biglobe.ne.jp
|
12
12
|
Email::Courier .......... 14/0016 0.8750 Courier MTA
|
13
|
-
Email::Domino ...........
|
14
|
-
Email::EZweb ............ 133/
|
13
|
+
Email::Domino ........... 10/0019 0.5263 IBM Domino Server
|
14
|
+
Email::EZweb ............ 133/0128 1.0000 au EZweb: http://www.au.kddi.com/mobile/
|
15
15
|
Email::EinsUndEins ...... 0/0004 0.0000 1&1: http://www.1and1.de
|
16
16
|
Email::Exchange2003 ..... 1/0051 0.0196 Microsoft Exchange Server 2003
|
17
17
|
Email::Exchange2007 ..... 10/0012 0.8333 Microsoft Exchange Server 2007
|
18
|
-
Email::Exim .............
|
18
|
+
Email::Exim ............. 234/0259 0.9035 Exim
|
19
19
|
Email::FML .............. 0/0004 0.0000 fml mailing list server/manager
|
20
20
|
Email::Facebook ......... 5/0005 1.0000 Facebook: https://www.facebook.com
|
21
21
|
Email::GMX .............. 0/0010 0.0000 GMX: http://www.gmx.net
|
22
22
|
Email::GSuite ........... 19/0019 1.0000 G Suite: https://gsuite.google.com/
|
23
23
|
Email::Google ........... 61/0063 0.9683 Google Gmail: https://mail.google.com
|
24
|
-
Email::IMailServer ...... 0/
|
24
|
+
Email::IMailServer ...... 0/0045 0.0000 IPSWITCH IMail Server
|
25
25
|
Email::InterScanMSS ..... 0/0008 0.0000 Trend Micro InterScan Messaging Security Suite
|
26
26
|
Email::KDDI ............. 6/0006 1.0000 au by KDDI: http://www.au.kddi.com
|
27
27
|
Email::MXLogic .......... 0/0014 0.0000 McAfee SaaS
|
@@ -32,17 +32,17 @@ Email::McAfee ........... 0/0014 0.0000 McAfee Email Appliance
|
|
32
32
|
Email::MessageLabs ...... 7/0007 1.0000 Symantec.cloud http://www.messagelabs.com
|
33
33
|
Email::MessagingServer .. 30/0033 0.9091 Oracle Communications Messaging Server
|
34
34
|
Email::Notes ............ 0/0013 0.0000 Lotus Notes
|
35
|
-
Email::Office365 ........
|
35
|
+
Email::Office365 ........ 26/0029 0.8966 Microsoft Office 365: http://office.microsoft.com/
|
36
36
|
Email::OpenSMTPD ........ 6/0024 0.2500 OpenSMTPD
|
37
37
|
Email::Outlook .......... 21/0023 0.9130 Microsoft Outlook.com: https://www.outlook.com/
|
38
|
-
Email::Postfix ..........
|
38
|
+
Email::Postfix .......... 251/0268 0.9366 Postfix
|
39
39
|
Email::ReceivingSES ..... 0/0007 0.0000 Amazon SES(Receiving): http://aws.amazon.com/ses/
|
40
40
|
Email::SendGrid ......... 7/0012 0.5833 SendGrid: http://sendgrid.com/
|
41
|
-
Email::Sendmail ......... 354/
|
41
|
+
Email::Sendmail ......... 354/0278 1.0000 V8Sendmail: /usr/sbin/sendmail
|
42
42
|
Email::SurfControl ...... 6/0008 0.7500 WebSense SurfControl
|
43
43
|
Email::V5sendmail ....... 0/0386 0.0000 Sendmail version 5
|
44
44
|
Email::Verizon .......... 4/0004 1.0000 Verizon Wireless: http://www.verizonwireless.com
|
45
|
-
Email::X1 ............... 0/
|
45
|
+
Email::X1 ............... 0/0008 0.0000 Unknown MTA #1
|
46
46
|
Email::X2 ............... 0/0070 0.0000 Unknown MTA #2
|
47
47
|
Email::X3 ............... 0/0012 0.0000 Unknown MTA #3
|
48
48
|
Email::X4 ............... 0/0029 0.0000 Unknown MTA #4 qmail clones
|
@@ -50,7 +50,7 @@ Email::X5 ............... 3/0003 1.0000 Unknown MTA #5
|
|
50
50
|
Email::Yahoo ............ 0/0025 0.0000 Yahoo! MAIL: https://www.yahoo.com
|
51
51
|
Email::Yandex ........... 4/0007 0.5714 Yandex.Mail: http://www.yandex.ru
|
52
52
|
Email::Zoho ............. 0/0011 0.0000 Zoho Mail: https://www.zoho.com
|
53
|
-
Email::mFILTER .......... 0/
|
53
|
+
Email::mFILTER .......... 0/0012 0.0000 Digital Arts m-FILTER
|
54
54
|
Email::qmail ............ 58/0087 0.6667 qmail
|
55
55
|
JSON::AmazonSES ......... 40/0049 0.8163 Amazon SES(JSON): http://aws.amazon.com/ses/
|
56
56
|
JSON::SendGrid .......... 7/0012 0.5833 SendGrid(JSON): http://sendgrid.com/
|
@@ -58,5 +58,5 @@ ARF ..................... 8/0038 0.2105 Abuse Feedback Reporting Format
|
|
58
58
|
RFC3464 ................. 151/0290 0.5207 Fallback Module for MTAs
|
59
59
|
RFC3834 ................. 0/0014 0.0000 Detector for auto replied message
|
60
60
|
--------------------------------------------------------------------------------
|
61
|
-
bounceHammer 2.7.13p3
|
62
|
-
Sisimai
|
61
|
+
bounceHammer 2.7.13p3 1561/2589 0.6029
|
62
|
+
Sisimai 4.25.2 2589/2589 1.0000
|
data/ChangeLog.md
CHANGED
@@ -3,10 +3,20 @@ RELEASE NOTES for Ruby version of Sisimai
|
|
3
3
|
- releases: "https://github.com/sisimai/rb-Sisimai/releases"
|
4
4
|
- download: "https://rubygems.org/gems/sisimai"
|
5
5
|
|
6
|
+
v4.25.2
|
7
|
+
--------------------------------------------------------------------------------
|
8
|
+
- release: "Thu, 1 Aug 2019 20:00:00 +0900 (JST)"
|
9
|
+
- version: "4.25.2"
|
10
|
+
- changes:
|
11
|
+
- THIS RELEASE IS TO FIX SERIOUS BUGS IN ONLY THE PERL VERSION OF SISIMAI
|
12
|
+
- Import Pull-Request from https://github.com/sisimai/p5-Sisimai/pull/324
|
13
|
+
- Improved MIME decoding code in Sisimai::MIME
|
14
|
+
- Strictly checks the number of parsed emails in `make test`
|
15
|
+
|
6
16
|
v4.25.1
|
7
17
|
--------------------------------------------------------------------------------
|
8
18
|
- release: "4.25.1"
|
9
|
-
- version: "
|
19
|
+
- version: "Tue, 23 Jul 2019 10:00:00 +0900 (JST)"
|
10
20
|
- changes:
|
11
21
|
- Check the format of the value of `Message-Id` header for detecting a bounce
|
12
22
|
mail from Exim or not.
|
data/README-JA.md
CHANGED
@@ -80,10 +80,10 @@ Install
|
|
80
80
|
|
81
81
|
```shell
|
82
82
|
$ sudo gem install sisimai
|
83
|
-
Fetching: sisimai-4.25.
|
84
|
-
Successfully installed sisimai-4.25.
|
85
|
-
Parsing documentation for sisimai-4.25.
|
86
|
-
Installing ri documentation for sisimai-4.25.
|
83
|
+
Fetching: sisimai-4.25.2.gem (100%)
|
84
|
+
Successfully installed sisimai-4.25.2
|
85
|
+
Parsing documentation for sisimai-4.25.2
|
86
|
+
Installing ri documentation for sisimai-4.25.2
|
87
87
|
Done installing documentation for sisimai after 6 seconds
|
88
88
|
1 gem installed
|
89
89
|
```
|
@@ -99,8 +99,8 @@ gem install bundle rake rspec coveralls
|
|
99
99
|
...
|
100
100
|
4 gems installed
|
101
101
|
bundle exec rake install
|
102
|
-
sisimai 4.25.
|
103
|
-
sisimai (4.25.
|
102
|
+
sisimai 4.25.2 built to pkg/sisimai-4.25.2.gem.
|
103
|
+
sisimai (4.25.2) installed.
|
104
104
|
```
|
105
105
|
|
106
106
|
Usage
|
@@ -244,8 +244,8 @@ Differences between Ruby version and Perl version
|
|
244
244
|
| メール解析速度(1000通のメール) | 2.22秒[2] | 1.50秒 |
|
245
245
|
| インストール方法 | gem install | cpanm, cpm |
|
246
246
|
| 依存モジュール数(コアモジュールを除く) | 1モジュール | 2モジュール |
|
247
|
-
| LOC:ソースコードの行数 | 11700行 |
|
248
|
-
| テスト件数(spec/,t/,xt/ディレクトリ) |
|
247
|
+
| LOC:ソースコードの行数 | 11700行 | 8300行 |
|
248
|
+
| テスト件数(spec/,t/,xt/ディレクトリ) | 227000件 | 248000件 |
|
249
249
|
| ライセンス | 二条項BSD | 二条項BSD |
|
250
250
|
| 開発会社によるサポート契約 | 提供中 | 提供中 |
|
251
251
|
|
data/README.md
CHANGED
@@ -248,8 +248,8 @@ and bounceHammer are available at
|
|
248
248
|
| The speed of parsing email(1000 emails) | 2.22s[2] | 1.50s |
|
249
249
|
| How to install | gem install | cpanm, cpm |
|
250
250
|
| Dependencies (Except core modules) | 1 module | 2 modules |
|
251
|
-
| LOC:Source lines of code | 11700 lines |
|
252
|
-
| The number of tests(spec/,t/,xt/) directory |
|
251
|
+
| LOC:Source lines of code | 11700 lines | 8300 lines |
|
252
|
+
| The number of tests(spec/,t/,xt/) directory | 227000 tests | 248000 tests |
|
253
253
|
| License | BSD 2-Clause | BSD 2-Clause |
|
254
254
|
| Support Contract provided by Developer | Available | Available |
|
255
255
|
|
data/lib/sisimai/mime.rb
CHANGED
@@ -16,7 +16,7 @@ module Sisimai
|
|
16
16
|
:'html-message' => %r|^content-type:[ ]*text/html;|m,
|
17
17
|
}.freeze
|
18
18
|
AlsoAppend = %r{\A(?:text/rfc822-headers|message/)}.freeze
|
19
|
-
ThisFormat = %r/\A(?:Content-Transfer-Encoding:\s*.+\n)?Content-Type:\s*([^
|
19
|
+
ThisFormat = %r/\A(?:Content-Transfer-Encoding:\s*.+\n)?Content-Type:\s*([^ ;\s]+)/.freeze
|
20
20
|
LeavesOnly = %r{\A(?>
|
21
21
|
text/(?:plain|html|rfc822-headers)
|
22
22
|
|message/(?:x?delivery-status|rfc822|partial|feedback-report)
|
@@ -414,13 +414,31 @@ module Sisimai
|
|
414
414
|
# - Content-Transfer-Encoding: 7BIT
|
415
415
|
# 2. Unused fields inside of mutipart/* block should be removed
|
416
416
|
argv1.gsub!(/(Content-[A-Za-z-]+?):[ ]*([^\s]+)/) do "#{$1}: #{$2.downcase}" end
|
417
|
-
argv1.gsub!(/^Content-(?:Description|Disposition)
|
417
|
+
argv1.gsub!(/^Content-(?:Description|Disposition):.+?$/, '')
|
418
418
|
|
419
419
|
multiparts = argv1.split(Regexp.new(Regexp.escape(ehboundary) << "\n"))
|
420
420
|
multiparts.shift if multiparts[0].empty?
|
421
421
|
|
422
422
|
while e = multiparts.shift do
|
423
423
|
# Find internal multipart blocks and decode
|
424
|
+
catch :XCCT do
|
425
|
+
while true
|
426
|
+
# Remove fields except Content-Type, Content-Transfer-Encoding in
|
427
|
+
# each part such as the following:
|
428
|
+
# Date: Thu, 29 Apr 2018 22:22:22 +0900
|
429
|
+
# MIME-Version: 1.0
|
430
|
+
# Message-ID: ...
|
431
|
+
# Content-Transfer-Encoding: quoted-printable
|
432
|
+
# Content-Type: text/plain; charset=us-ascii
|
433
|
+
throw :XCCT if e =~ /\AContent-T[ry]/
|
434
|
+
if cv = e.match(/\A(.+?)Content-Type:/)
|
435
|
+
throw :XCCT if cv[1] =~ /\n\n/
|
436
|
+
end
|
437
|
+
e.sub!(/\A.+?(Content-T[ry].+)\z/, '\1')
|
438
|
+
throw :XCCT
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
424
442
|
if e =~ /\A(?:Content-[A-Za-z-]+:.+?\r\n)?Content-Type:[ ]*[^\s]+/
|
425
443
|
# Content-Type: multipart/*
|
426
444
|
bodystring << Sisimai::MIME.breaksup(e, mimeformat)
|
data/lib/sisimai/version.rb
CHANGED
File without changes
|
File without changes
|
@@ -17,7 +17,7 @@ X-Virus-Status: Clean
|
|
17
17
|
|
18
18
|
This is a MIME-encapsulated message
|
19
19
|
|
20
|
-
--q0000098000000.
|
20
|
+
--q0000098000000.0000000004/mx.example.com
|
21
21
|
|
22
22
|
The original message was received at Thu, 29 Apr 2012 12:46:19 +0900
|
23
23
|
from c134.example.jp [192.0.2.90]
|
@@ -31,7 +31,7 @@ with id q000000Of019233
|
|
31
31
|
Message could not be delivered for 8 hours
|
32
32
|
Message will be deleted from queue
|
33
33
|
|
34
|
-
--q0000098000000.
|
34
|
+
--q0000098000000.0000000004/mx.example.com
|
35
35
|
Content-Type: message/delivery-status
|
36
36
|
|
37
37
|
Reporting-MTA: dns; mx.example.com
|
@@ -43,7 +43,7 @@ Status: 4.4.7
|
|
43
43
|
Remote-MTA: DNS; example.co.jp
|
44
44
|
Last-Attempt-Date: Thu, 29 Apr 2012 23:45:34 +0900
|
45
45
|
|
46
|
-
--q0000098000000.
|
46
|
+
--q0000098000000.0000000004/mx.example.com
|
47
47
|
Content-Type: text/rfc822-headers
|
48
48
|
|
49
49
|
Return-Path: <shironeko@example.or.jp>
|
@@ -56,5 +56,5 @@ MIME-Version: 1.0
|
|
56
56
|
Content-Type: text/plain; charset="ISO-2022-JP"
|
57
57
|
Content-Transfer-Encoding: 7bit
|
58
58
|
|
59
|
-
--q0000098000000.
|
59
|
+
--q0000098000000.0000000004/mx.example.com--
|
60
60
|
|
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.25.
|
4
|
+
version: 4.25.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azumakuniyuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|