| 1 | # appendfile body escapes (including "from hack" and "SMTP dot" tests) |
| 2 | need_ipv4 |
| 3 | # |
| 4 | exim -odi userx@test.ex |
| 5 | Test message |
| 6 | From the deep abyss |
| 7 | From |
| 8 | out of nowhere |
| 9 | Fromage please |
| 10 | from is case sensitive |
| 11 | From: is how headers start |
| 12 | **** |
| 13 | exim -odi usery@test.ex |
| 14 | Test message |
| 15 | From the deep abyss |
| 16 | From |
| 17 | out of nowhere |
| 18 | Fromage please |
| 19 | from is case sensitive |
| 20 | From: is how headers start |
| 21 | **** |
| 22 | write test-data 128x64 |
| 23 | ++++ |
| 24 | From Bohemia's woods and fields |
| 25 | **** |
| 26 | exim -odi userx@test.ex <test-data |
| 27 | **** |
| 28 | write test-data 127x64 1x63 |
| 29 | ++++ |
| 30 | From Bohemia's woods and fields |
| 31 | **** |
| 32 | exim -odi userx@test.ex <test-data |
| 33 | **** |
| 34 | exim -odi userz@test.ex |
| 35 | A message containing |
| 36 | . a line starting with a dot |
| 37 | .. and one starting with two dots |
| 38 | From should not be escaped as this is |
| 39 | going to be delivered using BSMTP. |
| 40 | **** |
| 41 | exim -odi userw@test.ex |
| 42 | A message containing |
| 43 | . a line starting with a dot |
| 44 | .. and one starting with two dots |
| 45 | From should not be escaped as this is |
| 46 | going to be delivered using BSMTP, |
| 47 | via a filter. |
| 48 | **** |
| 49 | server PORT_S |
| 50 | 220 ESMTP |
| 51 | EHLO |
| 52 | 250 OK |
| 53 | MAIL FROM: |
| 54 | 250 Sender OK |
| 55 | RCPT TO: |
| 56 | 250 Recipient OK |
| 57 | DATA |
| 58 | 354 Send data |
| 59 | . |
| 60 | 250 OK |
| 61 | QUIT |
| 62 | 250 OK |
| 63 | **** |
| 64 | exim -oi -odi userx@domain.com |
| 65 | .dotheader: This is perfectly legal |
| 66 | |
| 67 | A message containing |
| 68 | . a line starting with a dot |
| 69 | .. and one starting with two dots |
| 70 | . |
| 71 | The previous one contains only a dot. |
| 72 | **** |
| 73 | write test-data 127x64 1x62 |
| 74 | ++++ |
| 75 | Frost isn't From. |
| 76 | **** |
| 77 | exim -odi userx@test.ex <test-data |
| 78 | **** |
| 79 | exim -odi userx@test.ex |
| 80 | Last line ending without a newline and with a partial match: |
| 81 | From\NONL\ |
| 82 | **** |
| 83 | exim -odi filter-userx@test.ex |
| 84 | Test message |
| 85 | From the deep abyss |
| 86 | From |
| 87 | out of nowhere |
| 88 | Fromage please |
| 89 | from is case sensitive |
| 90 | From: is how headers start |
| 91 | **** |
| 92 | exim -odi filter-userx@test.ex |
| 93 | Last line ending without a newline and with a partial match: |
| 94 | From\NONL\ |
| 95 | **** |
| 96 | exim -odi userx@test.ex |
| 97 | Last line ending without a newline and being a single dot: |
| 98 | .\NONL\ |
| 99 | **** |
| 100 | exim -odi mmdf-userx@test.ex |
| 101 | Line consisting of four ^A characters |
| 102 | \ 1\ 1\ 1\ 1 |
| 103 | That should get escaped by adding a space. |
| 104 | **** |
| 105 | exim -odi batch-userx@test.ex batch-userz@test.ex |
| 106 | A message containing |
| 107 | . a line starting with a dot |
| 108 | .. and one starting with two dots |
| 109 | From should be escaped as this is |
| 110 | going to be delivered using batch. The dots |
| 111 | shouldn't be escaped. |
| 112 | **** |
| 113 | exim -odi userx@test.ex |
| 114 | Subject: From |
| 115 | |
| 116 | From is the very first word of the message. |
| 117 | From starts the second line. |
| 118 | **** |
| 119 | server PORT_S |
| 120 | 220 ESMTP |
| 121 | EHLO |
| 122 | 250 OK |
| 123 | MAIL FROM: |
| 124 | 250 Sender OK |
| 125 | RCPT TO: |
| 126 | 250 Recipient OK |
| 127 | DATA |
| 128 | 354 Send data |
| 129 | . |
| 130 | 250 OK |
| 131 | QUIT |
| 132 | 250 OK |
| 133 | **** |
| 134 | exim -oi -odi userx@filtered.com |
| 135 | .dotheader: This is perfectly legal |
| 136 | |
| 137 | A message containing |
| 138 | . a line starting with a dot |
| 139 | .. and one starting with two dots |
| 140 | . |
| 141 | The previous one contains only a dot. |
| 142 | **** |