sisimai 5.0.0-java → 5.0.3-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/codecovio.yml +33 -0
  3. data/.github/workflows/rake-test.yml +54 -0
  4. data/ChangeLog.md +68 -1
  5. data/Gemfile +2 -0
  6. data/README-JA.md +224 -112
  7. data/README.md +56 -33
  8. data/lib/sisimai/arf.rb +24 -5
  9. data/lib/sisimai/fact.rb +46 -8
  10. data/lib/sisimai/lhost/amazonses.rb +0 -1
  11. data/lib/sisimai/lhost/amazonworkmail.rb +0 -1
  12. data/lib/sisimai/lhost/aol.rb +0 -1
  13. data/lib/sisimai/lhost/bigfoot.rb +0 -1
  14. data/lib/sisimai/lhost/domino.rb +0 -1
  15. data/lib/sisimai/lhost/exchange2007.rb +1 -1
  16. data/lib/sisimai/lhost/exim.rb +7 -16
  17. data/lib/sisimai/lhost/facebook.rb +0 -1
  18. data/lib/sisimai/lhost/googlegroups.rb +2 -1
  19. data/lib/sisimai/lhost/gsuite.rb +0 -1
  20. data/lib/sisimai/lhost/mailmarshalsmtp.rb +1 -1
  21. data/lib/sisimai/lhost/mailru.rb +8 -17
  22. data/lib/sisimai/lhost/messagelabs.rb +0 -1
  23. data/lib/sisimai/lhost/mfilter.rb +1 -1
  24. data/lib/sisimai/lhost/mxlogic.rb +8 -18
  25. data/lib/sisimai/lhost/office365.rb +1 -1
  26. data/lib/sisimai/lhost/outlook.rb +0 -1
  27. data/lib/sisimai/lhost/postfix.rb +0 -1
  28. data/lib/sisimai/lhost/receivingses.rb +0 -1
  29. data/lib/sisimai/lhost/sendgrid.rb +1 -3
  30. data/lib/sisimai/lhost/sendmail.rb +0 -1
  31. data/lib/sisimai/lhost/yandex.rb +0 -1
  32. data/lib/sisimai/message.rb +14 -5
  33. data/lib/sisimai/reason/authfailure.rb +1 -0
  34. data/lib/sisimai/reason/blocked.rb +3 -0
  35. data/lib/sisimai/reason/expired.rb +8 -0
  36. data/lib/sisimai/reason/filtered.rb +1 -0
  37. data/lib/sisimai/reason/mailboxfull.rb +4 -0
  38. data/lib/sisimai/reason/norelaying.rb +1 -0
  39. data/lib/sisimai/reason/rejected.rb +1 -1
  40. data/lib/sisimai/reason/securityerror.rb +1 -0
  41. data/lib/sisimai/reason/spamdetected.rb +1 -0
  42. data/lib/sisimai/reason/suspend.rb +5 -0
  43. data/lib/sisimai/reason/userunknown.rb +4 -1
  44. data/lib/sisimai/rfc5322.rb +120 -64
  45. data/lib/sisimai/rhost/google.rb +347 -71
  46. data/lib/sisimai/rhost/microsoft.rb +8 -0
  47. data/lib/sisimai/rhost/mimecast.rb +9 -2
  48. data/lib/sisimai/rhost/nttdocomo.rb +3 -3
  49. data/lib/sisimai/smtp/status.rb +3 -0
  50. data/lib/sisimai/version.rb +1 -1
  51. data/lib/sisimai.rb +12 -11
  52. data/set-of-emails/maildir/bsd/arf-26.eml +27 -0
  53. data/set-of-emails/maildir/bsd/lhost-sendmail-60.eml +85 -0
  54. data/set-of-emails/maildir/bsd/rhost-microsoft-04.eml +86 -0
  55. data/set-of-emails/maildir/bsd/rhost-microsoft-05.eml +83 -0
  56. metadata +13 -8
  57. data/.travis.yml +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 204232437d6d462d3e6f24041002dc8ebab30b968083908a7f239ced4e07a2e5
4
- data.tar.gz: f92df225acc8e827ec6f67450ab831df38e31d23685eb6e54c133cb1c1bda5e7
3
+ metadata.gz: 54c592e5b1c8a3be27062107f12c99a55a70e953523df5c6c575e668a71e0dde
4
+ data.tar.gz: c6f726ab72d810a9447b3e7df6cccab4c458e899bd52c652c1260b7ba063fd3c
5
5
  SHA512:
6
- metadata.gz: 8cfb6ed75e138017253ce09a0ab62179e7f47e67ac5a9dcf2027fd6c844a1b698c049a0c7ecdd80935b18768c01acbfcfe4f0f7b46d6407683f0a6c48b17f064
7
- data.tar.gz: 8645903aec4e8732b2b31c51e43f1bc6a587e63b06218a7e8ee0f4aa416001f3a7548f4b8c6c58f8f2730634ff61c6e29cc71037728df2f244ebe68942fc1145
6
+ metadata.gz: 910179d9e65f229fb8775bf104e469bfb7b5c8d04d1888f2bdf1fb9e47cb00a6710e5e76cdb15118ceb4bf1358b8020cc70fecfab5c8a72ff0ab773fafd5b9fd
7
+ data.tar.gz: 949e5a68e872884ad3718dbc9280107c9c59c18986994878552c3d0bd0e595ac9ced30bf79ef1db33281757956f26fee0f8fcfc7d697159abbc718073006a61a
@@ -0,0 +1,33 @@
1
+ name: Upload coverage reports to Codecov
2
+ on:
3
+ push:
4
+ branches: ["5-stable"]
5
+ pull_request:
6
+ branches: ["5-stable"]
7
+ jobs:
8
+ codecov:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout the repository(CRuby)
12
+ uses: actions/checkout@v4
13
+ - name: Setup CRuby
14
+ uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: "3.3"
17
+ - name: Install minitest
18
+ run: gem install minitest -v 5.15.0
19
+ - name: Install oj
20
+ run: gem install oj -v 3.10.0
21
+ - name: Install bundle, rake, simplecov, and simplecov-cobertura
22
+ run: gem install bundle rake simplecov simplecov-cobertura
23
+ - name: Check the CRuby version
24
+ run: ruby -v
25
+ - name: Execute public tests with the coverage report
26
+ run: ruby -I./lib ./test/coverage.rb
27
+ - name: Run Codecov on GitHub Actions
28
+ uses: codecov/codecov-action@v4.4.0
29
+ with:
30
+ token: ${{ secrets.CODECOV_TOKEN }}
31
+ files: ./coverage/coverage.xml
32
+ verbose: true
33
+
@@ -0,0 +1,54 @@
1
+ name: rake test
2
+ on:
3
+ push:
4
+ branches: ["5-stable"]
5
+ pull_request:
6
+ branches: ["5-stable"]
7
+ jobs:
8
+ test-cruby:
9
+ name: rake test with CRuby ${{ matrix.cruby }}
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ cruby: ["2.4", "3.3"]
15
+ steps:
16
+ - name: Checkout the repository(CRuby)
17
+ uses: actions/checkout@v4
18
+ - name: Setup CRuby
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ matrix.cruby }}
22
+ - name: Install minitest
23
+ run: gem install minitest -v 5.15.0
24
+ - name: Install oj
25
+ run: gem install oj -v 3.10.0
26
+ - name: Install bundle and rake
27
+ run: gem install bundle rake
28
+ - name: Check the CRuby version
29
+ run: ruby -v
30
+ - name: Execute public tests
31
+ run: rake publictest
32
+ test-jruby:
33
+ name: rake test with JRuby ${{ matrix.jruby }}
34
+ runs-on: ubuntu-latest
35
+ strategy:
36
+ fail-fast: false
37
+ matrix:
38
+ jruby: ["jruby-9.2", "jruby-9.4"]
39
+ steps:
40
+ - name: Checkout the repository(JRuby)
41
+ uses: actions/checkout@v2
42
+ - name: Setup JRuby
43
+ uses: ruby/setup-ruby@v1
44
+ with:
45
+ ruby-version: ${{ matrix.jruby }}
46
+ - name: Install minitest
47
+ run: gem install minitest -v 5.15.0
48
+ - name: Install bundle, rake, and jrjackson
49
+ run: gem install bundle rake jrjackson
50
+ - name: Check the JRuby version
51
+ run: jruby -v
52
+ - name: Execute public tests
53
+ run: rake publictest
54
+
data/ChangeLog.md CHANGED
@@ -3,9 +3,76 @@ 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
+ v5.0.3
7
+ ---------------------------------------------------------------------------------------------------
8
+ - release: "Wed, 22 May 2024 14:12:22 +0900 (JST)"
9
+ - version: "5.0.3"
10
+ - changes:
11
+ - Remove `.travis.yml` from this repository
12
+ - Follow updates in Gmail SMTP errors and codes on Apr 29 and May 10 at `Sisimai::Rhost::Google`
13
+ #275 #277 #283
14
+ - https://support.google.com/a/answer/3726730?hl=en
15
+ - https://github.com/azumakuniyuki/feb-2024-no-auth-no-entry/commit/1d6adede
16
+ - https://github.com/azumakuniyuki/feb-2024-no-auth-no-entry/commit/d477b178
17
+ - Implement SMTP error codes as follows: `4.7.23`, `4.7.30`, `4.7.32`, `5.7.29`, and `5.7.30`
18
+ - Shortened error message patterns to make them more adaptable to minor sentence changes.
19
+ - Multibyte characters in the code and comments have been replaced with ASCII characters #278
20
+ - #279 #280 Deal the Apple unsubscribe notification as an ARF message. Thanks to @mnmallea
21
+ - Add the following error message patterns returned from Exchange Online #281
22
+ - 4.4.317, 5.4.317: STARTTLS is required to send mail
23
+ - 4.4.318, 5.4.318: Connection was closed abruptly (SuspiciousRemoteServerError)
24
+ - #282 Added 16 error message patterns into the following reasons:
25
+ - `Blocked`
26
+ - `Expired`
27
+ - `Filtered`
28
+ - `MailboxFull`
29
+ - `NoRelaying`
30
+ - `Suspend`
31
+ - `UserUnknown`
32
+ - #286 Use Codecov for the coverage
33
+
34
+ v5.0.2
35
+ ---------------------------------------------------------------------------------------------------
36
+ - release: "Wed, 13 Mar 2024 13:00:00 +0900 (JST)"
37
+ - version: "5.0.2"
38
+ - changes:
39
+ - #271 #267 Sisimai 5 works on JRuby again. Thanks to @hiroyuki-sato
40
+ - #159 Implement workarounds at `Sisimai::Fact` and some public tests with `DateTime` class to
41
+ run Sisimai on JRuby, to avoid failing `strptime()`
42
+ - #269 Replace `Array#append` with `Array#push` at `Sisimai::RFC5322` because `Array#append` is
43
+ only available in Ruby 2.5 and above
44
+ - We have started testing JRuby 9.2 and 9.4 on GitHub Actions
45
+ - Disable 2 tests in `test/public/mail-test.rb` that fails on GitHub Actions only
46
+ - `5.7.23` returned from Office365 is an error related to SPF vilation (authfailure)
47
+ - #272 Fixed an issue that Sisimai could not get the value of `alias` address correctly when an
48
+ email forwarded and bounced
49
+ - `Sisimai::RFC5322.received` now returns a list including all the elements except date time and
50
+ (comments) found in the `Received` header
51
+ - Update the error message patterns in `Sisimai::Rhost::Mimecast`
52
+ - Update the error message patterns in the followings:
53
+ - `AuthFailure`
54
+ - `Blocked`
55
+ - `Expired`
56
+ - `MailboxFull`
57
+ - `SecurityError`
58
+ - `SpamDetected`
59
+ - `Suspend`
60
+
61
+ v5.0.1
62
+ ---------------------------------------------------------------------------------------------------
63
+ - release: "Sun, 3 Mar 2024 17:17:17 +0900 (JST)"
64
+ - version: "5.0.1"
65
+ - changes:
66
+ - #263 Implement three SMTP status codes as follows: `5.7.28`, `5.7.29` and `5.7.30` described in
67
+ https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml
68
+ - #264 The values of `reason` of `postfix-28.eml` and `postfix-29.eml` in decoded results have
69
+ been fixed to `notcompliantrfc`.
70
+ - #265 Implement and update SMTP error codes, reply codes, and error messages described at Google
71
+ https://support.google.com/a/answer/3726730?hl=en in `Sisimai::Rhost::Google`.
72
+
6
73
  v5.0.0
7
74
  ---------------------------------------------------------------------------------------------------
8
- - release: ""Fri, 2 Feb 2024 23:22:22 +0900 (JST)
75
+ - release: "Fri, 2 Feb 2024 23:22:22 +0900 (JST)"
9
76
  - version: "5.0.0"
10
77
  - changes:
11
78
  - **INCOMPATIBLE CHANGES SINCE SISIMAI VERSION 4**
data/Gemfile CHANGED
@@ -7,5 +7,7 @@ group :development, :test do
7
7
  gem 'rake', :require => false
8
8
  gem 'minitest', :require => false
9
9
  gem 'coveralls', :require => false
10
+ gem 'simplecov', :require => false
11
+ gem 'simplecov-cobertura', :require => false
10
12
  end
11
13