summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0542
blob: 1c8c03b5f3d96b3801620099bc4e902455bd2077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -Mset and -bem
exim -f userz@test.ex -oMt userz userx@test.x usery@test.ex
From: Himself <himself@there.tld>
To: Yourself <you@here.tld>
Subject: The subject is not the object

This is the body of the message. Make the line longer than any header.
****
sudo exim -be -Mset $msg1
from: $h_from:
subject: $h_subject:
message_body_size=$message_body_size
message_id=$message_id
message_exim_id=$message_exim_id
max_received_linelength=$max_received_linelength
recipients=$recipients
TESTING_MACROS=$recipients
(TESTING_MACROS)
****
exim -bs
mail from:<userz@test.ex>
rcpt to:<userx@test.x>
rcpt to:<usery@test.ex>
data
From: Himself <himself@there.tld>
To: Yourself <you@here.tld>
Subject: The subject is not the object

This is the body of the message. Make the line much longer than any header.
.
quit
****
sudo exim -be -Mset $msg2
from: $h_from:
subject: $h_subject:
message_body_size=$message_body_size
message_id=$message_id
message_exim_id=$message_exim_id
max_received_linelength=$max_received_linelength
recipients=$recipients
****
write test-data
From: A Person <a.person@a.domain.tld>
To: First <first@test.ex>, Second <second@test.ex>
Subject: The subject is moot

And now we have the body of the message,
containing a small number of lines.
****
exim -bem DIR/test-data
from: $h_from:
to: $h_to:
subject: $h_subject:
message_body_size=$message_body_size
message_exim_id=$message_exim_id
message_linecount=$message_linecount
message_body_linecount=$body_linecount
max_received_linelength=$max_received_linelength
headers -----------------
$message_headers

body --------------------
$message_body

body end ----------------
$message_body_end
****
exim -bem DIR/test-data -t
recipients=$recipients
****
no_msglog_check