-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from sisimai/v4.25.0p1
V4.25.0p1
- Loading branch information
Showing
18 changed files
with
989 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,10 +139,13 @@ def headerlist; return %w[x-failed-recipients]; end | |
# part or nil if it failed to parse or | ||
# the arguments are missing | ||
def scan(mhead, mbody) | ||
# :'message-id' => %r/\A[<]\w+[-]\w+[-]\w+[@].+\z/, | ||
return nil if mhead['from'] =~ /[@].+[.]mail[.]ru[>]?/ | ||
return nil unless mhead['from'].start_with?('Mail Delivery System') | ||
return nil unless mhead['subject'] =~ %r{(?: | ||
return nil if mhead['from'] =~ /[@].+[.]mail[.]ru[>]?/ | ||
|
||
# Message-Id: <[email protected]> | ||
match = 0 | ||
match += 1 if mhead['from'].start_with?('Mail Delivery System') | ||
match += 1 if mhead['message-id'].to_s =~ %r/\A[<]\w{7}[-]\w{6}[-]\w{2}[@]/ | ||
match += 1 if mhead['subject'] =~ %r{(?: | ||
Mail[ ]delivery[ ]failed(:[ ]returning[ ]message[ ]to[ ]sender)? | ||
|Warning:[ ]message[ ].+[ ]delayed[ ]+ | ||
|Delivery[ ]Status[ ]Notification | ||
|
@@ -151,6 +154,7 @@ def scan(mhead, mbody) | |
|error[(]s[)][ ]in[ ]forwarding[ ]or[ ]filtering | ||
) | ||
}x | ||
return nil if match < 2 | ||
|
||
require 'sisimai/rfc1894' | ||
fieldtable = Sisimai::RFC1894.FIELDTABLE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Define the version number of Sisimai | ||
module Sisimai | ||
VERSION = '4.25.0'.freeze | ||
VERSION = '4.25.0p1'.freeze | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
Received: from BY2NAM03HT158.eop-NAM03.prod.protection.outlook.com | ||
(2603:1096:100:19::20) by SLXP216MB0381.KORP216.PROD.OUTLOOK.COM with HTTPS | ||
via SL2P216CA0058.KORP216.PROD.OUTLOOK.COM; Wed, 17 Apr 2019 05:39:02 +0000 | ||
Received: from BY2NAM03FT015.eop-NAM03.prod.protection.outlook.com | ||
(10.152.84.59) by BY2NAM03HT158.eop-NAM03.prod.protection.outlook.com | ||
(10.152.85.21) with Microsoft SMTP Server (version=TLS1_2, | ||
cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16; Wed, 17 Apr | ||
2019 05:39:02 +0000 | ||
Authentication-Results: spf=none (sender IP is 192.0.2.202) | ||
smtp.helo=rokujo.cr.nyaan.jp; outlook.com; dkim=none (message not signed) | ||
header.d=none;outlook.com; dmarc=none action=none | ||
header.from=rokujo.cr.nyaan.jp; | ||
Received-SPF: None (protection.outlook.com: rokujo.cr.nyaan.jp does not | ||
designate permitted sender hosts) | ||
Received: from rokujo.cr.nyaan.jp (192.0.2.202) by | ||
BY2NAM03FT015.mail.protection.outlook.com (10.152.84.212) with Microsoft SMTP | ||
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id | ||
15.20.1771.16 via Frontend Transport; Wed, 17 Apr 2019 05:39:01 +0000 | ||
X-IncomingTopHeaderMarker: OriginalChecksum:A1CD8B3776EE3FF5CEA4C998409E1F69E1E831B693CE099E69B68E391941E6F9;UpperCasedChecksum:D30D6C927BA1C67867F6BB364EC03CB75A3E42993CEA79E53991E20FA99D064A;SizeAsReceived:517;Count:9 | ||
Received: by rokujo.cr.nyaan.jp (Postfix) | ||
id 44kWJ43kJDz1yxHF; Wed, 17 Apr 2019 14:39:00 +0900 (JST) | ||
Date: Wed, 17 Apr 2019 14:39:00 +0900 | ||
From: Mail Delivery System <[email protected]> | ||
Subject: Undelivered Mail Returned to Sender | ||
To: <[email protected]> | ||
Auto-Submitted: auto-replied | ||
Content-Type: multipart/report; report-type=delivery-status; | ||
boundary="44kWHZ2S3Qz1yxHC.1555479540/rokujo.cr.nyaan.jp" | ||
Message-ID: <[email protected]> | ||
X-IncomingHeaderCount: 9 | ||
Return-Path: <> | ||
X-MS-Exchange-Organization-ExpirationStartTime: 17 Apr 2019 05:39:01.5236 | ||
(UTC) | ||
X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmit | ||
X-MS-Exchange-Organization-ExpirationInterval: 2:00:00:00.0000000 | ||
X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmit | ||
X-MS-Exchange-Organization-Network-Message-Id: 761e4ae2-81c3-4302-eec4-08d6c2f6fefc | ||
X-EOPAttributedMessage: 0 | ||
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0 | ||
X-MS-Exchange-Organization-MessageDirectionality: Incoming | ||
X-Forefront-Antispam-Report: EFV:NLI; | ||
X-MS-Exchange-Organization-AuthSource: | ||
BY2NAM03FT015.eop-NAM03.prod.protection.outlook.com | ||
X-MS-Exchange-Organization-AuthAs: Anonymous | ||
X-MS-PublicTrafficType: Email | ||
X-MS-UserLastLogonTime: 4/17/2019 5:34:26 AM | ||
X-MS-Office365-Filtering-Correlation-Id: 761e4ae2-81c3-4302-eec4-08d6c2f6fefc | ||
X-Microsoft-Antispam: | ||
BCL:0;PCL:0;RULEID:(2390118)(5000112)(711020)(4605104)(610169)(8291501072);SRVR:BY2NAM03HT158; | ||
X-MS-TrafficTypeDiagnostic: BY2NAM03HT158: | ||
X-MS-Exchange-EOPDirect: true | ||
X-Sender-IP: 192.0.2.202 | ||
X-SID-PRA: [email protected] | ||
X-SID-Result: NONE | ||
X-MS-Exchange-Organization-PCL: 2 | ||
X-OriginatorOrg: outlook.com | ||
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2019 05:39:01.3474 | ||
(UTC) | ||
X-MS-Exchange-CrossTenant-Network-Message-Id: 761e4ae2-81c3-4302-eec4-08d6c2f6fefc | ||
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa | ||
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet | ||
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM03HT158 | ||
X-MS-Exchange-Transport-EndToEndLatency: 00:00:01.4290992 | ||
X-MS-Exchange-Processed-By-BccFoldering: 15.20.1813.000 | ||
X-Microsoft-Antispam-Mailbox-Delivery: | ||
abwl:0;wl:0;pcwl:0;kl:0;iwl:0;dwl:0;dkl:0;rwl:0;ucf:0;jmr:0;ex:0;psp:0;auth:0;dest:J;OFR:SpamFilterAuthJ;ENG:(5062000261)(5061607266)(5061608174)(1002269)(4900115)(8390100)(8394020)(8376100)(8383139)(8397020)(4920090)(6360004)(4950130)(4990090)(9140004);RF:JunkEmail; | ||
X-Message-Info: | ||
qoGN4b5S4yqdjbFs0cudHJzI1xw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ME-Version: 1.0 | ||
|
||
--44kWHZ2S3Qz1yxHC.1555479540/rokujo.cr.nyaan.jp | ||
Content-Description: Notification | ||
Content-Type: text/plain; charset="us-ascii" | ||
This is the mail system at host rokujo.cr.nyaan.jp. | ||
I'm sorry to have to inform you that your message could not | ||
be delivered to one or more recipients. It's attached below. | ||
For further assistance, please send mail to postmaster. | ||
If you do so, please include this problem report. You can | ||
delete your own text from the attached returned message. | ||
The mail system | ||
<[email protected]>: host mx.cr.nyaan.jp[203.0.113.22] said: 550 5.2.1 | ||
<[email protected]>... User Unknown (in reply to RCPT TO command) | ||
--44kWHZ2S3Qz1yxHC.1555479540/rokujo.cr.nyaan.jp | ||
Content-Description: Delivery report | ||
Content-Type: message/delivery-status | ||
Reporting-MTA: dns; rokujo.cr.nyaan.jp | ||
X-Postfix-Queue-ID: 44kWHZ2S3Qz1yxHC | ||
X-Postfix-Sender: rfc822; [email protected] | ||
Arrival-Date: Wed, 17 Apr 2019 14:38:21 +0900 (JST) | ||
Final-Recipient: rfc822; [email protected] | ||
Original-Recipient: rfc822;[email protected] | ||
Action: failed | ||
Status: 5.2.1 | ||
Remote-MTA: dns; mx.cr.nyaan.jp | ||
Diagnostic-Code: smtp; 550 5.2.1 <[email protected]>... User Unknown | ||
--44kWHZ2S3Qz1yxHC.1555479540/rokujo.cr.nyaan.jp | ||
Content-Description: Undelivered Message | ||
Content-Type: message/rfc822 | ||
Return-Path: <[email protected]> | ||
Received: from [127.0.0.1] (localhost [127.0.0.1]) | ||
by rokujo.cr.nyaan.jp (Postfix) with ESMTP id 44kWHZ2S3Qz1yxHC | ||
for <[email protected]>; Wed, 17 Apr 2019 14:38:21 +0900 (JST) | ||
Subject: Nyaan | ||
To: <[email protected]> | ||
From: <[email protected]> | ||
Message-ID: <[email protected]> | ||
Date: Wed, 17 Apr 2019 14:38:21 +0900 | ||
Content-Type: text/plain | ||
MIME-Version: 1.0 | ||
Nyaan | ||
--44kWHZ2S3Qz1yxHC.1555479540/rokujo.cr.nyaan.jp-- |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters