3 # Without this, runtest would munge all dates and message-ids,
4 # destroying the things we wish to test:
8 ### A Message ID as it appears in an email:
10 exim_msgdate E1pAnS3-003fPj-Tw
12 ### A Message ID as it appears in the exim log:
14 exim_msgdate 1pEPHo-005xgk-2e
16 ### New-format log message ID
18 exim_msgdate 1ptUlY-00000000PfG-46ri
20 ### Just the date part of the Message ID:
25 ### ... the script was under development at this time ...
29 ### ... the end of exim msg-id time
33 ### All three time zones with a non-GMT time
35 exim_msgdate -l -u -z 1o6fde-003z7E-PS
37 ### All three types of message-ids, at once:
39 exim_msgdate E000000-005XGK-00 1pAnS3-003fPj-Tw zzzzzz
41 ### Message IDs generated on a system, such as Mac or Cygwin,
42 ### which has low-resolution Message-ID timestamps
44 exim_msgdate --base36 000000-005XGK-00
47 exim_msgdate --base36 ZZZZZZ-005XGK-RR
50 exim_msgdate --base36 zzzzzz-005xgk-zz
52 ### An invalid base option
54 exim_msgdate --base 32 ZZZZZZ
56 ### Message IDs generated on a standard system
57 ### with high-resolution Message-ID timestamps
59 exim_msgdate --base62 000000-005XGK-00
62 exim_msgdate --base62 ZZZZZZ-005XGK-WF
65 exim_msgdate --base62 zzzzzz-005xgk-WF
67 ### Some strings that are similar to, but not Exim Message IDs:
69 exim_msgdate zzzzzz-005xgk-z@
72 exim_msgdate zzzzz-z005xgk-zz
77 ### Print date with localtime
79 exim_msgdate -local 000000
82 exim_msgdate -local E1pAnS3-003fPj-Tw
85 exim_msgdate -local zzzzzz-003fPj-WF
87 ### Print date with timezone GMT/Zulu
89 exim_msgdate -GMT 000000-003fPj-00
92 exim_msgdate -GMT E1pAnS3-003fPj-Tw
95 exim_msgdate -zulu E1pAnS3-003fPj-Tw
98 exim_msgdate -zulu EZZZZZZ-003fPj-WF
100 ### Print date as seconds since the UNIX epoch.
102 exim_msgdate -unix E000000-003fPj-00
105 exim_msgdate -unix E1pAnS3-003fPj-WF
108 exim_msgdate -unix Ezzzzzz-003fpj-WF
110 ### Show the process id too
112 exim_msgdate -unix --pid EZZZZZZ-003fPj-WF
115 exim_msgdate -pid EZZZZZZ-003fPj-WF
118 exim_msgdate -local --pid EZZZZZZ-003fPj-WF
120 ### Override the value of localhost_number set in the exim configuation file
122 exim_msgdate -local --localhost_number 9 -base 62 EZZZZZZ-003FPJ-WF
125 exim_msgdate --localhost_number 9 -base 62 EZZZZZZ-003FPJ-WF
128 exim_msgdate --localhost_number 9 -base 36 EZZZZZZ-003FPJ-Q0
132 exim_msgdate --localhost_number 11 -base 36 EZZZZZZ-003FPJ-WF
135 exim_msgdate -localhost_number 9 --local -base 62 EZZZZZZ-003FPJ-WF
139 exim_msgdate --localhost_number -1 -base 36 EZZZZZZ-003FPJ-WF
143 exim_msgdate --localhost_number 19 -base 62 EZZZZZZ-003FPJ-WF
149 ### From here as 701 - 703
150 ### Each msg-id type, all zone
152 exim_msgdate -l -u -z -pid E000000-005XGK-00
155 exim_msgdate -l -u -z -pid 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
158 exim_msgdate -l -u -z -pid 000000 1PANS3 zzzzzz
161 exim_msgdate -l -u -z -pid 000000 1PANS3 ZZZZZZ
163 ### All msg-id types, all zones, localhost_number = 3
165 exim_msgdate -l -u -z -localhost_number=3 E000000-005XGK-00
168 exim_msgdate -l -u -z -localhost_number=3 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
171 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 zzzzzz
174 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 ZZZZZZ
176 ### All msg-id types, all zones, localhost_number = 13
178 exim_msgdate -l -u -z -localhost_number=13 E000000-005XGK-00
181 exim_msgdate -l -u -z -localhost_number=13 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
184 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 zzzzzz
187 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 ZZZZZZ
189 ### All msg-id types, all zones, localhost_number = 20
191 exim_msgdate -l -u -z -localhost_number=20 E000000-005XGK-00
194 exim_msgdate -l -u -z -localhost_number=20 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
197 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 zzzzzz
200 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 ZZZZZZ
202 ### All msg-id types, all zones, base=36
204 exim_msgdate -l -u -z --b36 E000000-005XGK-00
207 exim_msgdate -l -u -z --b36 000000-005XGK-00 ZZZZZZ-005XGK-R0 1PANS3-003FPJ-RR
210 exim_msgdate -l -u -z --b36 000000 1PANS3 zzzzzz
213 exim_msgdate -l -u -z --b36 000000 1PANS3 ZZZZZZ
215 ### All msg-id types, all zones, base=62
217 exim_msgdate -l -u -z --b62 E000000-005XGK-00
220 exim_msgdate -l -u -z --b62 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
223 exim_msgdate -l -u -z --b62 000000 1PANS3 zzzzzz
226 exim_msgdate -l -u -z --b62 000000 1PANS3 ZZZZZZ