New format for exim_message_id
[exim.git] / test / scripts / 0000-Basic / 0700
1 # exim_msgdate
2 #
3 # Without this, runtest would munge all dates and message-ids,
4 # destroying the things we wish to test:
5 no_munge
6 #
7 #
8 ### A Message ID as it appears in an email:
9 0 TZ=GB
10 exim_msgdate E1pAnS3-003fPj-Tw
11 ****
12 ### A Message ID as it appears in the exim log:
13 0 TZ=GB
14 exim_msgdate 1pEPHo-005xgk-2e
15 ****
16 ### New-format log message ID
17 0 TZ=GB
18 exim_msgdate 1ptUlY-00000000PfG-46ri
19 ****
20 ### Just the date part of the Message ID:
21 ###    The Epoch ...
22 0 TZ=GB
23 exim_msgdate 000000
24 ****
25 ### ... the script was under development at this time ...
26 0 TZ=GB
27 exim_msgdate 1pEPHo
28 ****
29 ### ... the end of exim msg-id time
30 0 TZ=GB
31 exim_msgdate zzzzzz
32 ****
33 ### All three time zones with a non-GMT time
34 0 TZ=GB
35 exim_msgdate -l -u -z 1o6fde-003z7E-PS
36 ****
37 ### All three types of message-ids, at once:
38 0 TZ=GB
39 exim_msgdate E000000-005XGK-00 1pAnS3-003fPj-Tw zzzzzz
40 ****
41 ### Message IDs generated on a system, such as Mac or Cygwin,
42 ### which has low-resolution Message-ID timestamps
43 0 TZ=GB
44 exim_msgdate --base36 000000-005XGK-00
45 ****
46 0 TZ=GB
47 exim_msgdate --base36 ZZZZZZ-005XGK-RR
48 ****
49 255 TZ=GB
50 exim_msgdate --base36 zzzzzz-005xgk-zz
51 ****
52 ### An invalid base option
53 255 TZ=GB
54 exim_msgdate --base 32 ZZZZZZ
55 ****
56 ### Message IDs generated on a standard system
57 ### with high-resolution Message-ID timestamps
58 0 TZ=GB
59 exim_msgdate --base62 000000-005XGK-00
60 ****
61 0 TZ=GB
62 exim_msgdate --base62 ZZZZZZ-005XGK-WF
63 ****
64 0 TZ=GB
65 exim_msgdate --base62 zzzzzz-005xgk-WF
66 ****
67 ### Some strings that are similar to, but not Exim Message IDs:
68 0 TZ=GB
69 exim_msgdate  zzzzzz-005xgk-z@
70 ****
71 0 TZ=GB
72 exim_msgdate  zzzzz-z005xgk-zz
73 ****
74 0 TZ=GB
75 exim_msgdate  zzzzzzz
76 ****
77 ### Print date with localtime
78 0 TZ=GB
79 exim_msgdate -local 000000
80 ****
81 0 TZ=GB
82 exim_msgdate -local E1pAnS3-003fPj-Tw
83 ****
84 0 TZ=GB
85 exim_msgdate -local zzzzzz-003fPj-WF
86 ****
87 ### Print date with timezone GMT/Zulu
88 0 TZ=GB
89 exim_msgdate -GMT 000000-003fPj-00
90 ****
91 0 TZ=GB
92 exim_msgdate -GMT E1pAnS3-003fPj-Tw
93 ****
94 0 TZ=GB
95 exim_msgdate -zulu E1pAnS3-003fPj-Tw
96 ****
97 0 TZ=GB
98 exim_msgdate -zulu EZZZZZZ-003fPj-WF
99 ****
100 ### Print date as seconds since the UNIX epoch.
101 0 TZ=GB
102 exim_msgdate -unix E000000-003fPj-00
103 ****
104 0 TZ=GB
105 exim_msgdate -unix E1pAnS3-003fPj-WF
106 ****
107 0 TZ=GB
108 exim_msgdate -unix Ezzzzzz-003fpj-WF
109 ****
110 ### Show the process id too
111 0 TZ=GB
112 exim_msgdate -unix --pid EZZZZZZ-003fPj-WF
113 ****
114 0 TZ=GB
115 exim_msgdate -pid EZZZZZZ-003fPj-WF
116 ****
117 0 TZ=GB
118 exim_msgdate -local --pid EZZZZZZ-003fPj-WF
119 ****
120 ### Override the value of localhost_number set in the exim configuation file
121 0 TZ=GB
122 exim_msgdate -local --localhost_number 11 -base 62 EZZZZZZ-003FPJ-WF
123 ****
124 0 TZ=GB
125 exim_msgdate --localhost_number 11 -base 62 EZZZZZZ-003FPJ-WF
126 ****
127 0 TZ=GB
128 exim_msgdate --localhost_number 9 -base 36 EZZZZZZ-003FPJ-Q0
129 ****
130 255 TZ=GB
131 exim_msgdate --localhost_number 11 -base 36 EZZZZZZ-003FPJ-WF
132 ****
133 0 TZ=GB
134 exim_msgdate -localhost_number 11 --local -base 62 EZZZZZZ-003FPJ-WF
135 ****
136 255 TZ=GB
137 exim_msgdate --localhost_number -1 -base 36 EZZZZZZ-003FPJ-WF
138 ****
139 255 TZ=GB
140 exim_msgdate --localhost_number 19 -base 62 EZZZZZZ-003FPJ-WF
141 ****
142 #
143 #
144 #
145 #
146 ### From here as 701 - 703
147 ### Each msg-id type, all zone
148 0 TZ=GB
149 exim_msgdate -l -u -z -pid E000000-005XGK-00
150 ****
151 0 TZ=GB
152 exim_msgdate -l -u -z -pid 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
153 ****
154 0 TZ=GB
155 exim_msgdate -l -u -z -pid 000000 1PANS3 zzzzzz
156 ****
157 0 TZ=GB
158 exim_msgdate -l -u -z -pid 000000 1PANS3 ZZZZZZ
159 ****
160 ### All msg-id types, all zones,  localhost_number = 3
161 0 TZ=GB
162 exim_msgdate -l -u -z -localhost_number=3 E000000-005XGK-00
163 ****
164 0 TZ=GB
165 exim_msgdate -l -u -z -localhost_number=3 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
166 ****
167 0 TZ=GB
168 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 zzzzzz
169 ****
170 0 TZ=GB
171 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 ZZZZZZ
172 ****
173 ### All msg-id types, all zones,  localhost_number = 13
174 0 TZ=GB
175 exim_msgdate -l -u -z -localhost_number=13 E000000-005XGK-00
176 ****
177 0 TZ=GB
178 exim_msgdate -l -u -z -localhost_number=13 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
179 ****
180 0 TZ=GB
181 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 zzzzzz
182 ****
183 0 TZ=GB
184 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 ZZZZZZ
185 ****
186 ### All msg-id types, all zones,  localhost_number = 20
187 255 TZ=GB
188 exim_msgdate -l -u -z -localhost_number=20 E000000-005XGK-00
189 ****
190 255 TZ=GB
191 exim_msgdate -l -u -z -localhost_number=20 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
192 ****
193 255 TZ=GB
194 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 zzzzzz
195 ****
196 255 TZ=GB
197 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 ZZZZZZ
198 ****
199 ### All msg-id types, all zones,  base=36
200 0 TZ=GB
201 exim_msgdate -l -u -z --b36 E000000-005XGK-00
202 ****
203 0 TZ=GB
204 exim_msgdate -l -u -z --b36 000000-005XGK-00 ZZZZZZ-005XGK-R0 1PANS3-003FPJ-RR
205 ****
206 255 TZ=GB
207 exim_msgdate -l -u -z --b36 000000 1PANS3 zzzzzz
208 ****
209 0 TZ=GB
210 exim_msgdate -l -u -z --b36 000000 1PANS3 ZZZZZZ
211 ****
212 ### All msg-id types, all zones,  base=62
213 0 TZ=GB
214 exim_msgdate -l -u -z --b62 E000000-005XGK-00
215 ****
216 0 TZ=GB
217 exim_msgdate -l -u -z --b62 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
218 ****
219 0 TZ=GB
220 exim_msgdate -l -u -z --b62 000000 1PANS3 zzzzzz
221 ****
222 0 TZ=GB
223 exim_msgdate -l -u -z --b62 000000 1PANS3 ZZZZZZ
224 ****