Support old-format message_id spoolfiles for mailq / -bp. Bug 3050
[exim.git] / test / scripts / 0000-Basic / 0699
1 # message ID format manipulation
2 # This testcase is for the 4.97 message-id format changeover
3 # should be dropped after a few further releases.
4 #
5 # Ensure spooldir exists
6 sudo mkdir -p DIR/spool/input
7 #
8 ### Check that delivery of old-format spoolfiles works
9 sudo cp DIR/aux-fixed/TESTNUM/* DIR/spool/input/
10 sudo chown -R EXIMUSER:EXIMGROUP DIR/spool/input/
11 sudo chmod -R 640 DIR/spool/input/*
12 exim -bp
13 ****
14 exim -q
15 ****
16 #
17 ### Check that the format-mangler utility can downgrade spoolfiles
18 exim -odq nulldeliver@test.ex
19 Subject: originally-new id format spoolfile
20
21 This is the only body content line
22 ****
23 exim -bp
24 ****
25 exim_id_update -d
26 exim -bp
27 ****
28 exim -q
29 ****
30 #
31 ### Check that the format-mangler utility can upgrade spoolfiles
32 sudo cp DIR/aux-fixed/TESTNUM/* DIR/spool/input/
33 sudo chown -R EXIMUSER:EXIMGROUP DIR/spool/input/
34 sudo chmod -R 640 DIR/spool/input/*
35 exim_id_update -u
36 exim -bp
37 ****
38 exim -q
39 ****
40 #
41 #
42 ### done
43 no_msglog_check
44 no_stderr_check