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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 987c5ddbe60a4d4074264b35a2a405ee542b084a
4
- data.tar.gz: f9da4e661ca0307fe2e2b1f6b2280f2ec734e8f0
3
+ metadata.gz: c2d311426ed6176e59f5c1cafb974d80a35d05db
4
+ data.tar.gz: 17cc11c056e66fa52cd4ce9ecf8d6bc89de6b168
5
5
  SHA512:
6
- metadata.gz: 791c4a69d2c439e22b965bccaa0445529a6dd937199d1f65a0377d923265eb18941bc831ce9e8d08b27e81030e53e49409bb1cdd5d9421ebe0ba3ed53fb5e005
7
- data.tar.gz: 63b747bfbad292a3a235a97ff7c0e6dba9d6f3e3fab9ba5421f15b9034d149c0e8aafa81ad2f9567abd2aa93aea8dc46f23269a4071207ea964effa346309ef7
6
+ metadata.gz: a0abaee072f4ebcbf0d1cd3d47a9f28bdefbdb30eb1ba987e92903edfb1f82bedfb7b07171dc78a0079d24bc645fff27288036f9e9d3cf141f82ebd80dc764d5
7
+ data.tar.gz: 767c12dfe36dcf5e78649da5bfa7959697659e7bc204c4b1ea58d7728880ce70842e6468b58e887fdb50393f7688b3a7dbd89b54ab9bea3de29bca5efa8b6eb1
@@ -4,7 +4,7 @@ rvm:
4
4
  - 2.2.4
5
5
  - 2.3.0
6
6
  - 2.4.0
7
- - 2.5.0
7
+ # - 2.5.0
8
8
  - 2.6.0
9
9
  # - jruby-9.0.5.0
10
10
  # - jruby-9.1.9.0
@@ -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 ........... 9/0018 0.5000 IBM Domino Server
14
- Email::EZweb ............ 133/0126 1.0000 au EZweb: http://www.au.kddi.com/mobile/
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 ............. 230/0255 0.9020 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/0022 0.0000 IPSWITCH IMail Server
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 ........ 22/0025 0.8800 Microsoft Office 365: http://office.microsoft.com/
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 .......... 248/0264 0.9394 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/0279 1.0000 V8Sendmail: /usr/sbin/sendmail
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/0007 0.0000 Unknown MTA #1
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/0009 0.0000 Digital Arts m-FILTER
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 1549/2548 0.6079
62
- Sisimai v4.25.0 2548/2548 1.0000
61
+ bounceHammer 2.7.13p3 1561/2589 0.6029
62
+ Sisimai 4.25.2 2589/2589 1.0000
@@ -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: ""Tue, 23 Jul 2019 10:00:00 +0900 (JST)
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.
@@ -80,10 +80,10 @@ Install
80
80
 
81
81
  ```shell
82
82
  $ sudo gem install sisimai
83
- Fetching: sisimai-4.25.1.gem (100%)
84
- Successfully installed sisimai-4.25.1
85
- Parsing documentation for sisimai-4.25.1
86
- Installing ri documentation for sisimai-4.25.1
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.1 built to pkg/sisimai-4.25.1.gem.
103
- sisimai (4.25.1) installed.
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行 | 8200行 |
248
- | テスト件数(spec/,t/,xt/ディレクトリ) | 225000件 | 242000件 |
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 | 8200 lines |
252
- | The number of tests(spec/,t/,xt/) directory | 225000 tests | 242000 tests |
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
 
@@ -136,7 +136,6 @@ module Sisimai::Bite::Email
136
136
  end
137
137
 
138
138
  r = Sisimai::Address.s3s4(cv[1])
139
- next unless Sisimai::RFC5322.is_emailaddress(r)
140
139
  v['recipient'] = r
141
140
  recipients += 1
142
141
 
@@ -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*([^ ;]+)/.freeze
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)
@@ -1,4 +1,4 @@
1
1
  # Define the version number of Sisimai
2
2
  module Sisimai
3
- VERSION = '4.25.1'.freeze
3
+ VERSION = '4.25.2'.freeze
4
4
  end
@@ -17,7 +17,7 @@ X-Virus-Status: Clean
17
17
 
18
18
  This is a MIME-encapsulated message
19
19
 
20
- --q0000098000000.1267617874/mx.example.com
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.0000000000/mx.example.com
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.0000000000/mx.example.com
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.0000000000/mx.example.com--
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.1
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-07-23 00:00:00.000000000 Z
11
+ date: 2019-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler