diff options
Diffstat (limited to 'test/scripts/0000-Basic/0100')
-rw-r--r-- | test/scripts/0000-Basic/0100 | 142 |
1 files changed, 142 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0100 b/test/scripts/0000-Basic/0100 new file mode 100644 index 000000000..a8cf6863d --- /dev/null +++ b/test/scripts/0000-Basic/0100 @@ -0,0 +1,142 @@ +# appendfile body escapes (including "from hack" and "SMTP dot" tests) +need_ipv4 +# +exim -odi userx@test.ex +Test message +From the deep abyss +From +out of nowhere +Fromage please +from is case sensitive +From: is how headers start +**** +exim -odi usery@test.ex +Test message +From the deep abyss +From +out of nowhere +Fromage please +from is case sensitive +From: is how headers start +**** +write test-data 128x64 +++++ +From Bohemia's woods and fields +**** +exim -odi userx@test.ex <test-data +**** +write test-data 127x64 1x63 +++++ +From Bohemia's woods and fields +**** +exim -odi userx@test.ex <test-data +**** +exim -odi userz@test.ex +A message containing +. a line starting with a dot +.. and one starting with two dots +From should not be escaped as this is +going to be delivered using BSMTP. +**** +exim -odi userw@test.ex +A message containing +. a line starting with a dot +.. and one starting with two dots +From should not be escaped as this is +going to be delivered using BSMTP, +via a filter. +**** +server PORT_S +220 ESMTP +EHLO +250 OK +MAIL FROM: +250 Sender OK +RCPT TO: +250 Recipient OK +DATA +354 Send data +. +250 OK +QUIT +250 OK +**** +exim -oi -odi userx@domain.com +.dotheader: This is perfectly legal + +A message containing +. a line starting with a dot +.. and one starting with two dots +. +The previous one contains only a dot. +**** +write test-data 127x64 1x62 +++++ +Frost isn't From. +**** +exim -odi userx@test.ex <test-data +**** +exim -odi userx@test.ex +Last line ending without a newline and with a partial match: +From\NONL\ +**** +exim -odi filter-userx@test.ex +Test message +From the deep abyss +From +out of nowhere +Fromage please +from is case sensitive +From: is how headers start +**** +exim -odi filter-userx@test.ex +Last line ending without a newline and with a partial match: +From\NONL\ +**** +exim -odi userx@test.ex +Last line ending without a newline and being a single dot: +.\NONL\ +**** +exim -odi mmdf-userx@test.ex +Line consisting of four ^A characters + +That should get escaped by adding a space. +**** +exim -odi batch-userx@test.ex batch-userz@test.ex +A message containing +. a line starting with a dot +.. and one starting with two dots +From should be escaped as this is +going to be delivered using batch. The dots +shouldn't be escaped. +**** +exim -odi userx@test.ex +Subject: From + +From is the very first word of the message. +From starts the second line. +**** +server PORT_S +220 ESMTP +EHLO +250 OK +MAIL FROM: +250 Sender OK +RCPT TO: +250 Recipient OK +DATA +354 Send data +. +250 OK +QUIT +250 OK +**** +exim -oi -odi userx@filtered.com +.dotheader: This is perfectly legal + +A message containing +. a line starting with a dot +.. and one starting with two dots +. +The previous one contains only a dot. +**** |