string.c: do not interpret '\\' before '\0' (CVE-2019-15846)
[exim.git] / test / scripts / 0000-Basic / 0542
... / ...
CommitLineData
1# -Mset and -bem
2exim -f userz@test.ex -oMt userz userx@test.x usery@test.ex
3From: Himself <himself@there.tld>
4To: Yourself <you@here.tld>
5Subject: The subject is not the object
6
7This is the body of the message. Make the line longer than any header.
8****
9sudo exim -be -Mset $msg1
10from: $h_from:
11subject: $h_subject:
12message_body_size=$message_body_size
13message_id=$message_id
14message_exim_id=$message_exim_id
15max_received_linelength=$max_received_linelength
16recipients=$recipients
17TESTING_MACROS=$recipients
18(TESTING_MACROS)
19****
20exim -bs
21mail from:<userz@test.ex>
22rcpt to:<userx@test.x>
23rcpt to:<usery@test.ex>
24data
25From: Himself <himself@there.tld>
26To: Yourself <you@here.tld>
27Subject: The subject is not the object
28
29This is the body of the message. Make the line much longer than any header.
30.
31quit
32****
33sudo exim -be -Mset $msg2
34from: $h_from:
35subject: $h_subject:
36message_body_size=$message_body_size
37message_id=$message_id
38message_exim_id=$message_exim_id
39max_received_linelength=$max_received_linelength
40recipients=$recipients
41****
42write test-data
43From: A Person <a.person@a.domain.tld>
44To: First <first@test.ex>, Second <second@test.ex>
45Subject: The subject is moot
46
47And now we have the body of the message,
48containing a small number of lines.
49****
50exim -bem DIR/test-data
51from: $h_from:
52to: $h_to:
53subject: $h_subject:
54message_body_size=$message_body_size
55message_exim_id=$message_exim_id
56message_linecount=$message_linecount
57message_body_linecount=$body_linecount
58max_received_linelength=$max_received_linelength
59headers -----------------
60$message_headers
61
62body --------------------
63$message_body
64
65body end ----------------
66$message_body_end
67****
68exim -bem DIR/test-data -t
69recipients=$recipients
70****
71no_msglog_check