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 11 -base 62 EZZZZZZ-003FPJ-WF
125 exim_msgdate --localhost_number 11 -base 62 EZZZZZZ-003FPJ-WF
128 exim_msgdate --localhost_number 9 -base 36 EZZZZZZ-003FPJ-Q0
131 exim_msgdate --localhost_number 11 -base 36 EZZZZZZ-003FPJ-WF
134 exim_msgdate -localhost_number 11 --local -base 62 EZZZZZZ-003FPJ-WF
137 exim_msgdate --localhost_number -1 -base 36 EZZZZZZ-003FPJ-WF
140 exim_msgdate --localhost_number 19 -base 62 EZZZZZZ-003FPJ-WF
146 ### From here as 701 - 703
147 ### Each msg-id type, all zone
149 exim_msgdate -l -u -z -pid E000000-005XGK-00
152 exim_msgdate -l -u -z -pid 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
155 exim_msgdate -l -u -z -pid 000000 1PANS3 zzzzzz
158 exim_msgdate -l -u -z -pid 000000 1PANS3 ZZZZZZ
160 ### All msg-id types, all zones, localhost_number = 3
162 exim_msgdate -l -u -z -localhost_number=3 E000000-005XGK-00
165 exim_msgdate -l -u -z -localhost_number=3 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
168 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 zzzzzz
171 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 ZZZZZZ
173 ### All msg-id types, all zones, localhost_number = 13
175 exim_msgdate -l -u -z -localhost_number=13 E000000-005XGK-00
178 exim_msgdate -l -u -z -localhost_number=13 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
181 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 zzzzzz
184 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 ZZZZZZ
186 ### All msg-id types, all zones, localhost_number = 20
188 exim_msgdate -l -u -z -localhost_number=20 E000000-005XGK-00
191 exim_msgdate -l -u -z -localhost_number=20 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
194 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 zzzzzz
197 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 ZZZZZZ
199 ### All msg-id types, all zones, base=36
201 exim_msgdate -l -u -z --b36 E000000-005XGK-00
204 exim_msgdate -l -u -z --b36 000000-005XGK-00 ZZZZZZ-005XGK-R0 1PANS3-003FPJ-RR
207 exim_msgdate -l -u -z --b36 000000 1PANS3 zzzzzz
210 exim_msgdate -l -u -z --b36 000000 1PANS3 ZZZZZZ
212 ### All msg-id types, all zones, base=62
214 exim_msgdate -l -u -z --b62 E000000-005XGK-00
217 exim_msgdate -l -u -z --b62 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
220 exim_msgdate -l -u -z --b62 000000 1PANS3 zzzzzz
223 exim_msgdate -l -u -z --b62 000000 1PANS3 ZZZZZZ