diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2012-10-04 23:23:50 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2012-10-06 20:00:37 +0100 |
commit | 3c0a92dcf8312d3071769e5a36946c651330e0e4 (patch) | |
tree | 08fb2b8152a77c0ad3c7c17e0280bbd3e8bb1e5b /test | |
parent | 4eae92ae55cd6904459eea8f4a2afe48cc0b5b66 (diff) |
Logging-only patch for 8BITMIME; bug 817.
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0566 | 3 | ||||
-rw-r--r-- | test/log/0566 | 10 | ||||
-rw-r--r-- | test/mail/0566.userx | 39 | ||||
-rw-r--r-- | test/rejectlog/0566 | 1 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0566 | 53 | ||||
-rw-r--r-- | test/stdout/0566 | 48 |
6 files changed, 153 insertions, 1 deletions
diff --git a/test/confs/0566 b/test/confs/0566 index e7a91c694..83e97fb18 100644 --- a/test/confs/0566 +++ b/test/confs/0566 @@ -1,4 +1,4 @@ -# Exim test configuration 0028 +# Exim test configuration 0566 exim_path = EXIM_PATH host_lookup_order = bydns @@ -6,6 +6,7 @@ primary_hostname = myhost.test.ex rfc1413_query_timeout = 0s spool_directory = DIR/spool log_file_path = DIR/spool/log/%slog +log_selector = +8bitmime gecos_pattern = "" gecos_name = CALLER_NAME diff --git a/test/log/0566 b/test/log/0566 index e59c7336d..0922615b3 100644 --- a/test/log/0566 +++ b/test/log/0566 @@ -3,3 +3,13 @@ 1999-03-02 09:44:33 ignoring AUTH=x@y from U=CALLER (client not authenticated) 1999-03-02 09:44:33 U=CALLER F=<x@y> rejected RCPT <userx@test.ex>: SIZE value too big 1999-03-02 09:44:33 U=CALLER F=<x@y> rejected RCPT <userx@test.ex>: SIZE value too big +1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss M8S=0 +1999-03-02 09:44:33 10HmaX-0005vi-00 => userx <userx@test.ex> R=r2 T=local_delivery +1999-03-02 09:44:33 10HmaX-0005vi-00 Completed +1999-03-02 09:44:33 10HmaY-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss M8S=7 +1999-03-02 09:44:33 10HmaY-0005vi-00 => userx <userx@test.ex> R=r2 T=local_delivery +1999-03-02 09:44:33 10HmaY-0005vi-00 Completed +1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss M8S=8 +1999-03-02 09:44:33 10HmaZ-0005vi-00 => userx <userx@test.ex> R=r2 T=local_delivery +1999-03-02 09:44:33 10HmaZ-0005vi-00 Completed +1999-03-02 09:44:33 SMTP call from CALLER dropped: too many syntax or protocol errors (last command was "foo") diff --git a/test/mail/0566.userx b/test/mail/0566.userx new file mode 100644 index 000000000..e5f0975da --- /dev/null +++ b/test/mail/0566.userx @@ -0,0 +1,39 @@ +From CALLER@myhost.test.ex Tue Mar 02 09:44:33 1999 +Received: from CALLER (helo=Testing) + 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 +Subject: test +Message-Id: <E10HmaX-0005vi-00@myhost.test.ex> +From: CALLER_NAME <CALLER@myhost.test.ex> +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +foo + +From CALLER@myhost.test.ex Tue Mar 02 09:44:33 1999 +Received: from CALLER (helo=Testing) + by myhost.test.ex with local-esmtp (Exim x.yz) + (envelope-from <CALLER@myhost.test.ex>) + id 10HmaY-0005vi-00 + for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +Subject: test +Message-Id: <E10HmaY-0005vi-00@myhost.test.ex> +From: CALLER_NAME <CALLER@myhost.test.ex> +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +foo + +From CALLER@myhost.test.ex Tue Mar 02 09:44:33 1999 +Received: from CALLER (helo=Testing) + by myhost.test.ex with local-esmtp (Exim x.yz) + (envelope-from <CALLER@myhost.test.ex>) + id 10HmaZ-0005vi-00 + for userx@test.ex; Tue, 2 Mar 1999 09:44:33 +0000 +Subject: test +Message-Id: <E10HmaZ-0005vi-00@myhost.test.ex> +From: CALLER_NAME <CALLER@myhost.test.ex> +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +foo + diff --git a/test/rejectlog/0566 b/test/rejectlog/0566 index 67b5dc277..7a420d042 100644 --- a/test/rejectlog/0566 +++ b/test/rejectlog/0566 @@ -1,2 +1,3 @@ 1999-03-02 09:44:33 U=CALLER F=<x@y> rejected RCPT <userx@test.ex>: SIZE value too big 1999-03-02 09:44:33 U=CALLER F=<x@y> rejected RCPT <userx@test.ex>: SIZE value too big +1999-03-02 09:44:33 SMTP call from CALLER dropped: too many syntax or protocol errors (last command was "foo") diff --git a/test/scripts/0000-Basic/0566 b/test/scripts/0000-Basic/0566 index c4dc0d8aa..b2c5f75b4 100644 --- a/test/scripts/0000-Basic/0566 +++ b/test/scripts/0000-Basic/0566 @@ -70,4 +70,57 @@ mail from:<x@y> BODY=8BITMIME SIZE=40004 rcpt to:<userx@test.ex> quit **** +# no BODY, data +exim -bs +ehlo Testing +mail from:<x@y> +rcpt to:<userx@test.ex> +data +Subject: test + +foo +. +quit +**** +sleep 1 +# 7bit BODY, data +exim -bs +ehlo Testing +mail from:<x@y> BODY=7BIT +rcpt to:<userx@test.ex> +data +Subject: test + +foo +. +quit +**** +sleep 1 +# 8bit BODY, data +exim -bs +ehlo Testing +mail from:<x@y> BODY=8BITMIME +rcpt to:<userx@test.ex> +data +Subject: test + +foo +. +quit +**** +sleep 1 +# bad BODY, data +# should fail +1 +exim -bs +ehlo Testing +mail from:<x@y> BODY=wrong +rcpt to:<userx@test.ex> +data +Subject: test + +foo +. +quit +**** no_msglog_check diff --git a/test/stdout/0566 b/test/stdout/0566 index cb221f611..d3465d49e 100644 --- a/test/stdout/0566 +++ b/test/stdout/0566 @@ -88,3 +88,51 @@ 250 OK
550 SIZE value too big
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 Testing
+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
+220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello CALLER at Testing
+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 CALLER at Testing
+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 CALLER at Testing
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250 HELP
+501 invalid data for BODY
+503 sender not yet given
+503-All RCPT commands were rejected with this error:
+503-503 sender not yet given
+503 Valid RCPT command must precede DATA
+500 unrecognized command
+500 unrecognized command
+500-unrecognized command
+500 Too many syntax or protocol errors
|