sisimai 4.25.1-java → 4.25.2-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6db6c4e44ac509561c439034227dabc3cd6f1c9d
4
- data.tar.gz: 66edf604fc32a44ba203ccd6963635f4d5b1bd5d
3
+ metadata.gz: f2769f696ceb459c5dba339296c6ed63a48d4729
4
+ data.tar.gz: a7a4f22f98240bc7cc6141401c773a5882310998
5
5
  SHA512:
6
- metadata.gz: b88676a692f29455c0791dd5197c265a7cef4f453355e574df57587c3893a525ca5c57d428185575c156691b19041c98a6559b84e470116f9f35e2ff2b6f07b7
7
- data.tar.gz: 4af2ab72159e755035bda03dc5ce9d21ce0f96e9e1eb993d3d4d4420f2c14207b088e30db68649e18b3e87e307d2d4e8a05431f3d2e4549510194cba4c170395
6
+ metadata.gz: 386cefabec1d85cd728fde98942952f87a52b4a931330efd8db38da034d85ad67a62a7d8d2997aac6fd5be1d8464f0a0cd9c38ca645aaf872b6b8fbd0aa4c47a
7
+ data.tar.gz: be9945bd609c5b7dbe25e11b28dcf3a06c6309530b7ec3c4161153ceaa03be35932fc55d87bcb5c0ccec8f653956f926b38634a79bd7d11f20c4f608536b8e37
data/.travis.yml CHANGED
@@ -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
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 ........... 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
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: ""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.
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.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
 
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*([^ ;]+)/.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
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.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: java
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
  requirement: !ruby/object:Gem::Requirement