diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-03-01 14:05:43 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-03-01 15:10:32 +0000 |
commit | b273058b341903372bdebe67d2960e4f8d2d8689 (patch) | |
tree | 1140121e22e294bc5b118ab0fd76df6c6c0dcbb1 /test/stdout | |
parent | 84a655513611641b55a8f46c13ee0e3cb141477f (diff) |
Fix $mime_part_count for non-mime message on multi-message connection. Bug 2537
Diffstat (limited to 'test/stdout')
-rw-r--r-- | test/stdout/4001 | 38 | ||||
-rw-r--r-- | test/stdout/4002 | 209 | ||||
-rw-r--r-- | test/stdout/4003 | 216 | ||||
-rw-r--r-- | test/stdout/4004 | 47 |
4 files changed, 275 insertions, 235 deletions
diff --git a/test/stdout/4001 b/test/stdout/4001 index 2db3157dd..e0e8de066 100644 --- a/test/stdout/4001 +++ b/test/stdout/4001 @@ -1,5 +1,10 @@ + +**** SMTP testing session as if from host 127.0.0.1 +**** but without any ident (RFC 1413) callback. +**** This is not for real! + 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
-250-myhost.test.ex Hello CALLER at test.ex
+250-myhost.test.ex Hello mailserver.test [127.0.0.1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
@@ -8,17 +13,28 @@ 250 Accepted
354 Enter message, ending with "." on a line by itself
250 OK id=10HmaX-0005vi-00
-221 myhost.test.ex closing connection
-220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
-250-myhost.test.ex Hello CALLER at test.ex
-250-SIZE 52428800
-250-8BITMIME
-250-PIPELINING
-250 HELP
+ +**** SMTP testing: that is not a real message id! + +250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaY-0005vi-00
+ +**** SMTP testing: that is not a real message id! + +250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaZ-0005vi-00
+ +**** SMTP testing: that is not a real message id! + 250 OK
250 Accepted
354 Enter message, ending with "." on a line by itself
-550-Your message has been rejected but is being kept for evaluation.
-550-If it was a legitimate message, it may still be delivered to the target
-550 recipient(s).
+250 OK id=10HmbA-0005vi-00
+ +**** SMTP testing: that is not a real message id! + 221 myhost.test.ex closing connection
diff --git a/test/stdout/4002 b/test/stdout/4002 index 5c16c636a..2db3157dd 100644 --- a/test/stdout/4002 +++ b/test/stdout/4002 @@ -1,5 +1,5 @@ 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
-250-myhost.test.ex Hello fromuser at test.ex
+250-myhost.test.ex Hello CALLER at test.ex
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
@@ -10,7 +10,7 @@ 250 OK id=10HmaX-0005vi-00
221 myhost.test.ex closing connection
220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
-250-myhost.test.ex Hello fromuser at test.ex
+250-myhost.test.ex Hello CALLER at test.ex
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
@@ -18,206 +18,7 @@ 250 OK
250 Accepted
354 Enter message, ending with "." on a line by itself
-250 OK id=10HmaY-0005vi-00
+550-Your message has been rejected but is being kept for evaluation.
+550-If it was a legitimate message, it may still be delivered to the target
+550 recipient(s).
221 myhost.test.ex closing connection
-220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
-250-myhost.test.ex Hello fromuser at test.ex
-250-SIZE 52428800
-250-8BITMIME
-250-PIPELINING
-250 HELP
-250 OK
-250 Accepted
-354 Enter message, ending with "." on a line by itself
-250 OK id=10HmaZ-0005vi-00
-221 myhost.test.ex closing connection
-220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
-250-myhost.test.ex Hello fromuser at test.ex
-250-SIZE 52428800
-250-8BITMIME
-250-PIPELINING
-250 HELP
-250 OK
-250 Accepted
-354 Enter message, ending with "." on a line by itself
-250 OK id=10HmbA-0005vi-00
-221 myhost.test.ex closing connection
- -******** SERVER ******** -Listening on port 7833 ... -Connection request from [127.0.0.1] -<REPORT SPAMC/1.2 -<User: nobody -<Content-length: ddd -< -<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 -<X-Envelope-From: <fromuser@myhost.test.ex> -<X-Envelope-To: userx@test.ex -<Received: from fromuser (helo=test.ex) -< by myhost.test.ex with local-esmtp (Exim x.yz) -< (envelope-from <fromuser@myhost.test.ex>) -< id 10HmaX-0005vi-00 -< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -<Content-type: text/plain -<Message-Id: <E10HmaX-0005vi-00@myhost.test.ex> -<From: fromuser@myhost.test.ex -<Date: Tue, 2 Mar 1999 09:44:33 +0000 -< -<test ->SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -Expected EOF read from client -End of script -Listening on port 7833 ... -Connection request from [127.0.0.1] -<REPORT SPAMC/1.2 -<User: nobody -<Content-length: ddd -< -<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 -<X-Envelope-From: <fromuser@myhost.test.ex> -<X-Envelope-To: userx@test.ex -<Received: from fromuser (helo=test.ex) -< by myhost.test.ex with local-esmtp (Exim x.yz) -< (envelope-from <fromuser@myhost.test.ex>) -< id 10HmaY-0005vi-00 -< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -<Content-type: text/plain -<Message-Id: <E10HmaY-0005vi-00@myhost.test.ex> -<From: fromuser@myhost.test.ex -<Date: Tue, 2 Mar 1999 09:44:33 +0000 -< -<test ->SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -Expected EOF read from client -End of script -Inital pause of 2 seconds -Listening on port 7833 ... -Connection request from [127.0.0.1] -<REPORT SPAMC/1.2 -<User: nobody -<Content-length: ddd -< -<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 -<X-Envelope-From: <fromuser@myhost.test.ex> -<X-Envelope-To: userx@test.ex -<Received: from fromuser (helo=test.ex) -< by myhost.test.ex with local-esmtp (Exim x.yz) -< (envelope-from <fromuser@myhost.test.ex>) -< id 10HmaZ-0005vi-00 -< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -<Content-type: text/plain -<Message-Id: <E10HmaZ-0005vi-00@myhost.test.ex> -<From: fromuser@myhost.test.ex -<Date: Tue, 2 Mar 1999 09:44:33 +0000 -< -<test ->SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -Expected EOF read from client -End of script -Listening on port 7833 ... -Connection request from [127.0.0.1] -<REPORT SPAMC/1.2 -<User: nobody -<Content-length: ddd -< -<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 -<X-Envelope-From: <fromuser@myhost.test.ex> -<X-Envelope-To: userx@test.ex -<Received: from fromuser (helo=test.ex) -< by myhost.test.ex with local-esmtp (Exim x.yz) -< (envelope-from <fromuser@myhost.test.ex>) -< id 10HmbA-0005vi-00 -< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -<Content-type: text/plain -<Message-Id: <E10HmbA-0005vi-00@myhost.test.ex> -<From: fromuser@myhost.test.ex -<Date: Tue, 2 Mar 1999 09:44:33 +0000 -< -<test ->SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -Expected EOF read from client -End of script diff --git a/test/stdout/4003 b/test/stdout/4003 index afff4e4df..5c16c636a 100644 --- a/test/stdout/4003 +++ b/test/stdout/4003 @@ -1,5 +1,5 @@ 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
-250-myhost.test.ex Hello CALLER at test.ex
+250-myhost.test.ex Hello fromuser at test.ex
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
@@ -9,39 +9,215 @@ 354 Enter message, ending with "." on a line by itself
250 OK id=10HmaX-0005vi-00
221 myhost.test.ex closing connection
+220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello fromuser at test.ex
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaY-0005vi-00
+221 myhost.test.ex closing connection
+220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello fromuser at test.ex
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaZ-0005vi-00
+221 myhost.test.ex closing connection
+220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello fromuser at test.ex
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmbA-0005vi-00
+221 myhost.test.ex closing connection
******** SERVER ******** -Listening on port 11333 ... +Listening on port 7833 ... Connection request from [127.0.0.1] -<CHECK RSPAMC/1.3 +<REPORT SPAMC/1.2 +<User: nobody <Content-length: ddd -<Queue-Id: 10HmaX-0005vi-00 -<From: <CALLER@myhost.test.ex> -<Recipient-Number: 1 -<Rcpt: <userx@test.ex> -<Helo: test.ex -<User: CALLER < <From MAILER-DAEMON Tue Mar 02 09:44:33 1999 -<X-Envelope-From: <CALLER@myhost.test.ex> +<X-Envelope-From: <fromuser@myhost.test.ex> <X-Envelope-To: userx@test.ex -<Received: from CALLER (helo=test.ex) +<Received: from fromuser (helo=test.ex) < by myhost.test.ex with local-esmtp (Exim x.yz) -< (envelope-from <CALLER@myhost.test.ex>) +< (envelope-from <fromuser@myhost.test.ex>) < id 10HmaX-0005vi-00 < for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 -<From: MAILER_DAEMON <> <Content-type: text/plain <Message-Id: <E10HmaX-0005vi-00@myhost.test.ex> -<Sender: CALLER_NAME <CALLER@myhost.test.ex> +<From: fromuser@myhost.test.ex +<Date: Tue, 2 Mar 1999 09:44:33 +0000 +< +<test +>SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> +Expected EOF read from client +End of script +Listening on port 7833 ... +Connection request from [127.0.0.1] +<REPORT SPAMC/1.2 +<User: nobody +<Content-length: ddd +< +<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 +<X-Envelope-From: <fromuser@myhost.test.ex> +<X-Envelope-To: userx@test.ex +<Received: from fromuser (helo=test.ex) +< by myhost.test.ex with local-esmtp (Exim x.yz) +< (envelope-from <fromuser@myhost.test.ex>) +< id 10HmaY-0005vi-00 +< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +<Content-type: text/plain +<Message-Id: <E10HmaY-0005vi-00@myhost.test.ex> +<From: fromuser@myhost.test.ex +<Date: Tue, 2 Mar 1999 09:44:33 +0000 +< +<test +>SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> +Expected EOF read from client +End of script +Inital pause of 2 seconds +Listening on port 7833 ... +Connection request from [127.0.0.1] +<REPORT SPAMC/1.2 +<User: nobody +<Content-length: ddd +< +<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 +<X-Envelope-From: <fromuser@myhost.test.ex> +<X-Envelope-To: userx@test.ex +<Received: from fromuser (helo=test.ex) +< by myhost.test.ex with local-esmtp (Exim x.yz) +< (envelope-from <fromuser@myhost.test.ex>) +< id 10HmaZ-0005vi-00 +< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +<Content-type: text/plain +<Message-Id: <E10HmaZ-0005vi-00@myhost.test.ex> +<From: fromuser@myhost.test.ex +<Date: Tue, 2 Mar 1999 09:44:33 +0000 +< +<test +>SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> +Expected EOF read from client +End of script +Listening on port 7833 ... +Connection request from [127.0.0.1] +<REPORT SPAMC/1.2 +<User: nobody +<Content-length: ddd +< +<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 +<X-Envelope-From: <fromuser@myhost.test.ex> +<X-Envelope-To: userx@test.ex +<Received: from fromuser (helo=test.ex) +< by myhost.test.ex with local-esmtp (Exim x.yz) +< (envelope-from <fromuser@myhost.test.ex>) +< id 10HmbA-0005vi-00 +< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +<Content-type: text/plain +<Message-Id: <E10HmbA-0005vi-00@myhost.test.ex> +<From: fromuser@myhost.test.ex <Date: Tue, 2 Mar 1999 09:44:33 +0000 < <test ->RSPAMD/1.3 0 EX_OK ->Metric: default; True; 15.00 / 15.00 / 0.0 ->Action: reject ->Symbol: FAKE_SYMBOL_A(15.00) ->Symbol: FAKE_SYMBOL_B(0.00) ->Message-ID: undef +>SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> Expected EOF read from client End of script diff --git a/test/stdout/4004 b/test/stdout/4004 new file mode 100644 index 000000000..afff4e4df --- /dev/null +++ b/test/stdout/4004 @@ -0,0 +1,47 @@ +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello CALLER at test.ex
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaX-0005vi-00
+221 myhost.test.ex closing connection
+ +******** SERVER ******** +Listening on port 11333 ... +Connection request from [127.0.0.1] +<CHECK RSPAMC/1.3 +<Content-length: ddd +<Queue-Id: 10HmaX-0005vi-00 +<From: <CALLER@myhost.test.ex> +<Recipient-Number: 1 +<Rcpt: <userx@test.ex> +<Helo: test.ex +<User: CALLER +< +<From MAILER-DAEMON Tue Mar 02 09:44:33 1999 +<X-Envelope-From: <CALLER@myhost.test.ex> +<X-Envelope-To: userx@test.ex +<Received: from CALLER (helo=test.ex) +< by myhost.test.ex with local-esmtp (Exim x.yz) +< (envelope-from <CALLER@myhost.test.ex>) +< id 10HmaX-0005vi-00 +< for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +<From: MAILER_DAEMON <> +<Content-type: text/plain +<Message-Id: <E10HmaX-0005vi-00@myhost.test.ex> +<Sender: CALLER_NAME <CALLER@myhost.test.ex> +<Date: Tue, 2 Mar 1999 09:44:33 +0000 +< +<test +>RSPAMD/1.3 0 EX_OK +>Metric: default; True; 15.00 / 15.00 / 0.0 +>Action: reject +>Symbol: FAKE_SYMBOL_A(15.00) +>Symbol: FAKE_SYMBOL_B(0.00) +>Message-ID: undef +Expected EOF read from client +End of script |