Skip to content

Commit

Permalink
Add rfc3464-41.eml and rfc3464-42.eml provided at sisimai/rb-sisimai#223
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Sep 29, 2021
1 parent 9c0d359 commit 42bb08c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
19 changes: 19 additions & 0 deletions set-of-emails/maildir/bsd/rfc3464-41.eml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From MAILER-DAEMON Mon Sep 20 19:29:27 2021
Return-Path: <>
X-Original-To: postmaster@peter.otto.org
Delivered-To: blackhole@localhost
From: <foo@bar.net>
To: postmaster@any.com
Message-ID: <dummy@ott.pet>
Date: Mon, 20 Sep 2021 21:29:21 +0200 (CEST)
X-RZG-CLASS-ID: mi
X-RZG-TRIGGERING-SMTP-ID: qcZaAFivUJ
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Subject: kitununulinitoquekegu
In-Reply-To: <foobar@dummy.org>
Auto-Submitted: auto-replied

zuk=C3=BCnftig
karl@hanz.de
34 changes: 34 additions & 0 deletions set-of-emails/maildir/bsd/rfc3464-42.eml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From MAILER-DAEMON Mon Sep 20 19:33:02 2021
Return-Path: <>
X-Original-To: postmaster@blackhole.our-host.net
Delivered-To: blackhole@localhost
Received: from mx2.itnetwork.net (mx2.itnetwork.net [123.123.123.202])
by play.thmthlayer.com (Postfix) with ESMTPS id 94598E117B
for <postmaster@blackhole.our-host.net>; Mon, 20 Sep 2021 19:33:02 +0000 (UTC)
Received: from 10.9.37.234 ([10.9.34.13]) by mx2.itnetwork.net with ESMTP id rTR3cr9xLoMiR5vX for <postmaster@blackhole.our-host.net>; Mon, 20 Sep 2021 21:33:01 +0200 (CEST)
Date: Mon, 20 Sep 2021 21:32:59 +0200 (GMT+02:00)
From: Postmaster@bit-onbreeeck.org
To: MyName <message@gelaneeiuet.org>
Subject: foobar
Mime-Version: 1.0
Message-ID: <OFB3228DED.DDDCAC8E-ONC1258756.006B648D-C1258756.006B6493@bit-onbreeeck.org>
Content-Type: multipart/report; report-type=delivery-status; boundary="==IFJRGLKFGIR7891042UHRUHIHD"

--==IFJRGLKFGIR7891042UHRUHIHD
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: base64
ICBhdWZnZWb8aHJ0DQoNCg==
--==IFJRGLKFGIR7891042UHRUHIHD
Content-Type: message/delivery-status
Reporting-MTA: dns;10.9.37.234
Final-Recipient: rfc822;jane.doe@some-domain.net
Action: failed
Status: 5.0.0
Diagnostic-Code: The email account that you tried to reach does not exist.
--==IFJRGLKFGIR7891042UHRUHIHD--

2 changes: 1 addition & 1 deletion t/022-mail-maildir.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ my $MethodNames = {
'class' => ['new'],
'object' => ['path', 'dir', 'file', 'size', 'offset', 'handle', 'read'],
};
my $MaildirSize = 503;
my $MaildirSize = 505;
my $SampleEmail = './set-of-emails/maildir/bsd';
my $NewInstance = $PackageName->new($SampleEmail);

Expand Down
2 changes: 2 additions & 0 deletions t/698-rfc3464.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ my $isexpected = [
{ 'n' => '38', 's' => qr/\A5[.]0[.]\d+\z/, 'r' => qr/mailboxfull/, 'a' => qr/RFC3464/, 'b' => qr/\A1\z/ },
{ 'n' => '39', 's' => qr/\A5[.]0[.]\d+\z/, 'r' => qr/onhold/, 'a' => qr/RFC3464/, 'b' => qr/\A1\z/ },
{ 'n' => '40', 's' => qr/\A4[.]4[.]6\z/, 'r' => qr/networkerror/, 'a' => qr/RFC3464/, 'b' => qr/\A1\z/ },
{ 'n' => '41', 's' => qr/\A5[.]0[.]901\z/, 'r' => qr/onhold/, 'a' => qr/RFC3464/, 'b' => qr/\A1\z/ },
{ 'n' => '42', 's' => qr/\A5[.]0[.]0\z/, 'r' => qr/filtered/, 'a' => qr/RFC3464/, 'b' => qr/\A1\z/ },
];

$enginetest->($enginename, $isexpected);
Expand Down

0 comments on commit 42bb08c

Please sign in to comment.