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 ### Just the date part of the Message ID:
21 ### ... the script was under development at this time ...
25 ### ... the end of exim msg-id time
29 ### All three time zones with a non-GMT time
31 exim_msgdate -l -u -z 1o6fde-003z7E-PS
33 ### All three types of message-ids, at once:
35 exim_msgdate E000000-005XGK-00 1pAnS3-003fPj-Tw zzzzzz
37 ### Message IDs generated on a system, such as Mac or Cygwin,
38 ### which has low-resolution Message-ID timestamps
40 exim_msgdate --base36 000000-005XGK-00
43 exim_msgdate --base36 ZZZZZZ-005XGK-ZZ
46 exim_msgdate --base36 zzzzzz-005xgk-zz
48 ### An invalid base option
50 exim_msgdate --base 32 ZZZZZZ
52 ### Message IDs generated on a standard system
53 ### with high-resolution Message-ID timestamps
55 exim_msgdate --base62 000000-005XGK-00
58 exim_msgdate --base62 ZZZZZZ-005XGK-ZZ
61 exim_msgdate --base62 zzzzzz-005xgk-zz
63 ### Some strings that are similar to, but not Exim Message IDs:
65 exim_msgdate zzzzzz-005xgk-z@
68 exim_msgdate zzzzz-z005xgk-zz
73 ### Print date with localtime
75 exim_msgdate -local 000000
78 exim_msgdate -local E1pAnS3-003fPj-Tw
81 exim_msgdate -local zzzzzz-003fPj-zz
83 ### Print date with timezone GMT/Zulu
85 exim_msgdate -GMT 000000-003fPj-00
88 exim_msgdate -GMT E1pAnS3-003fPj-Tw
91 exim_msgdate -zulu E1pAnS3-003fPj-Tw
94 exim_msgdate -zulu EZZZZZZ-003fPj-ZZ
96 ### Print date as seconds since the UNIX epoch.
98 exim_msgdate -unix E000000-003fPj-00
101 exim_msgdate -unix E1pAnS3-003fPj-tw
104 exim_msgdate -unix Ezzzzzz-003fpj-zz
106 ### Show the process id too
108 exim_msgdate -unix --pid EZZZZZZ-003fPj-ZZ
111 exim_msgdate -pid EZZZZZZ-003fPj-ZZ
114 exim_msgdate -local --pid EZZZZZZ-003fPj-ZZ
116 ### Override the value of localhost_number set in the exim configuation file
118 exim_msgdate -local --localhost_number 11 -base 62 EZZZZZZ-003FPJ-ZZ
121 exim_msgdate --localhost_number 11 -base 62 EZZZZZZ-003FPJ-ZZ
124 exim_msgdate --localhost_number 9 -base 36 EZZZZZZ-003FPJ-ZZ
127 exim_msgdate --localhost_number 11 -base 36 EZZZZZZ-003FPJ-ZZ
130 exim_msgdate -localhost_number 11 --local -base 62 EZZZZZZ-003FPJ-ZZ
133 exim_msgdate --localhost_number -1 -base 36 EZZZZZZ-003FPJ-ZZ
136 exim_msgdate --localhost_number 19 -base 62 EZZZZZZ-003FPJ-ZZ
142 ### From here as 701 - 703
143 ### Each msg-id type, all zone
145 exim_msgdate -l -u -z -pid E000000-005XGK-00
148 exim_msgdate -l -u -z -pid 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
151 exim_msgdate -l -u -z -pid 000000 1PANS3 zzzzzz
154 exim_msgdate -l -u -z -pid 000000 1PANS3 ZZZZZZ
156 ### All msg-id types, all zones, localhost_number = 3
158 exim_msgdate -l -u -z -localhost_number=3 E000000-005XGK-00
161 exim_msgdate -l -u -z -localhost_number=3 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
164 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 zzzzzz
167 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 ZZZZZZ
169 ### All msg-id types, all zones, localhost_number = 13
171 exim_msgdate -l -u -z -localhost_number=13 E000000-005XGK-00
174 exim_msgdate -l -u -z -localhost_number=13 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
177 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 zzzzzz
180 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 ZZZZZZ
182 ### All msg-id types, all zones, localhost_number = 20
184 exim_msgdate -l -u -z -localhost_number=20 E000000-005XGK-00
187 exim_msgdate -l -u -z -localhost_number=20 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
190 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 zzzzzz
193 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 ZZZZZZ
195 ### All msg-id types, all zones, base=36
197 exim_msgdate -l -u -z --b36 E000000-005XGK-00
200 exim_msgdate -l -u -z --b36 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
203 exim_msgdate -l -u -z --b36 000000 1PANS3 zzzzzz
206 exim_msgdate -l -u -z --b36 000000 1PANS3 ZZZZZZ
208 ### All msg-id types, all zones, base=62
210 exim_msgdate -l -u -z --b62 E000000-005XGK-00
213 exim_msgdate -l -u -z --b62 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
216 exim_msgdate -l -u -z --b62 000000 1PANS3 zzzzzz
219 exim_msgdate -l -u -z --b62 000000 1PANS3 ZZZZZZ