1 # Exercising exim_msgdate
4 # Without this, runtest would munge all dates and message-ids,
5 # destroying the things we wish to test:
8 ### A Message ID as it appears in an email:
9 exim_msgdate E1pAnS3-003fPj-Tw
11 ### A Message ID as it appears in the exim log:
12 exim_msgdate 1pEPHo-005xgk-2e
14 ### Just the date part of the Message ID:
18 ### ... the script was under development at this time ...
21 ### ... the end of exim msg-id time
24 ### All three time zones with a non-GMT time
25 exim_msgdate -l -u -z 1o6fde-003z7E-PS
27 ### All three types of message-ids, at once:
28 exim_msgdate E000000-005XGK-00 1pAnS3-003fPj-Tw zzzzzz
30 ### Message IDs generated on a system, such as Mac or Cygwin,
31 ### which has low-resolution Message-ID timestamps
32 exim_msgdate --base36 000000-005XGK-00
34 exim_msgdate --base36 ZZZZZZ-005XGK-ZZ
37 exim_msgdate --base36 zzzzzz-005xgk-zz
39 ### An invalid base option
41 exim_msgdate --base 32 ZZZZZZ
43 ### Message IDs generated on a standard system
44 ### with high-resolution Message-ID timestamps
45 exim_msgdate --base62 000000-005XGK-00
47 exim_msgdate --base62 ZZZZZZ-005XGK-ZZ
49 exim_msgdate --base62 zzzzzz-005xgk-zz
51 ### Some strings that are similar to, but not Exim Message IDs:
52 exim_msgdate zzzzzz-005xgk-z@
54 exim_msgdate zzzzz-z005xgk-zz
58 ### Print date with localtime
59 exim_msgdate -local 000000
61 exim_msgdate -local E1pAnS3-003fPj-Tw
63 exim_msgdate -local zzzzzz-003fPj-zz
65 ### Print date with timezone GMT/Zulu
66 exim_msgdate -GMT 000000-003fPj-00
68 exim_msgdate -GMT E1pAnS3-003fPj-Tw
70 exim_msgdate -zulu E1pAnS3-003fPj-Tw
72 exim_msgdate -zulu EZZZZZZ-003fPj-ZZ
74 ### Print date as seconds since the UNIX epoch.
75 exim_msgdate -unix E000000-003fPj-00
77 exim_msgdate -unix E1pAnS3-003fPj-tw
79 exim_msgdate -unix Ezzzzzz-003fpj-zz
81 ### Show the process id too
82 exim_msgdate -unix --pid EZZZZZZ-003fPj-ZZ
84 exim_msgdate -pid EZZZZZZ-003fPj-ZZ
86 exim_msgdate -local --pid EZZZZZZ-003fPj-ZZ
88 ### Override the value of localhost_number set in the exim configuation file
89 exim_msgdate -local --localhost_number 11 -base 62 EZZZZZZ-003FPJ-ZZ
91 exim_msgdate --localhost_number 11 -base 62 EZZZZZZ-003FPJ-ZZ
93 exim_msgdate --localhost_number 9 -base 36 EZZZZZZ-003FPJ-ZZ
96 exim_msgdate --localhost_number 11 -base 36 EZZZZZZ-003FPJ-ZZ
98 exim_msgdate -localhost_number 11 --local -base 62 EZZZZZZ-003FPJ-ZZ
100 exim_msgdate --localhost_number -1 -base 36 EZZZZZZ-003FPJ-ZZ
103 exim_msgdate --localhost_number 19 -base 62 EZZZZZZ-003FPJ-ZZ
105 ### From here as 701 - 703
106 ### Each msg-id type, all zone
107 exim_msgdate -l -u -z -pid E000000-005XGK-00
109 exim_msgdate -l -u -z -pid 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
111 exim_msgdate -l -u -z -pid 000000 1PANS3 zzzzzz
113 exim_msgdate -l -u -z -pid 000000 1PANS3 ZZZZZZ
115 ### All msg-id types, all zones, localhost_number = 3
116 exim_msgdate -l -u -z -localhost_number=3 E000000-005XGK-00
118 exim_msgdate -l -u -z -localhost_number=3 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
120 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 zzzzzz
122 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 ZZZZZZ
124 ### All msg-id types, all zones, localhost_number = 13
125 exim_msgdate -l -u -z -localhost_number=13 E000000-005XGK-00
127 exim_msgdate -l -u -z -localhost_number=13 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
129 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 zzzzzz
131 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 ZZZZZZ
133 ### All msg-id types, all zones, localhost_number = 20
135 exim_msgdate -l -u -z -localhost_number=20 E000000-005XGK-00
138 exim_msgdate -l -u -z -localhost_number=20 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
141 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 zzzzzz
144 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 ZZZZZZ
146 ### All msg-id types, all zones, base=36
147 exim_msgdate -l -u -z --b36 E000000-005XGK-00
150 exim_msgdate -l -u -z --b36 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
153 exim_msgdate -l -u -z --b36 000000 1PANS3 zzzzzz
155 exim_msgdate -l -u -z --b36 000000 1PANS3 ZZZZZZ
157 ### All msg-id types, all zones, base=62
158 exim_msgdate -l -u -z --b62 E000000-005XGK-00
160 exim_msgdate -l -u -z --b62 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
162 exim_msgdate -l -u -z --b62 000000 1PANS3 zzzzzz
164 exim_msgdate -l -u -z --b62 000000 1PANS3 ZZZZZZ