Testsuite: fix munge for mailq
[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=GMT
47 exim_msgdate --base36 ZZZZZZ-005XGK-RR
48 ****
49 ~0 TZ=GB
50 exim_msgdate --base36 zzzzzz-005xgk-zz
51 ****
52 ### An invalid base option
53 ~0 TZ=GMT
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=GMT
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=GMT
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=GMT
112 exim_msgdate -unix --pid EZZZZZZ-003fPj-WF
113 ****
114 0 TZ=GMT
115 exim_msgdate -pid EZZZZZZ-003fPj-WF
116 ****
117 0 TZ=GMT
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=GMT
122 exim_msgdate -local --localhost_number 9 -base 62 EZZZZZZ-003FPJ-WF
123 ****
124 0 TZ=GMT
125 exim_msgdate --localhost_number 9 -base 62 EZZZZZZ-003FPJ-WF
126 ****
127 0 TZ=GMT
128 exim_msgdate --localhost_number 9 -base 36 EZZZZZZ-003FPJ-Q0
129 ****
130 ### hostno too big
131 ~0 TZ=GMT
132 exim_msgdate --localhost_number 11 -base 36 EZZZZZZ-003FPJ-WF
133 ****
134 0 TZ=GMT
135 exim_msgdate -localhost_number 9 --local -base 62 EZZZZZZ-003FPJ-WF
136 ****
137 ### hostno negative
138 ~0 TZ=GMT
139 exim_msgdate --localhost_number -1 -base 36 EZZZZZZ-003FPJ-WF
140 ****
141 ### hostno too big
142 ~0 TZ=GMT
143 exim_msgdate --localhost_number 19 -base 62 EZZZZZZ-003FPJ-WF
144 ****
145 #
146 #
147 #
148 #
149 ### From here as 701 - 703
150 ### Each msg-id type, all zone
151 0 TZ=GB
152 exim_msgdate -l -u -z -pid E000000-005XGK-00
153 ****
154 0 TZ=GMT
155 exim_msgdate -l -u -z -pid 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
156 ****
157 0 TZ=GB
158 exim_msgdate -l -u -z -pid 000000 1PANS3 zzzzzz
159 ****
160 0 TZ=GMT
161 exim_msgdate -l -u -z -pid 000000 1PANS3 ZZZZZZ
162 ****
163 ### All msg-id types, all zones,  localhost_number = 3
164 0 TZ=GB
165 exim_msgdate -l -u -z -localhost_number=3 E000000-005XGK-00
166 ****
167 0 TZ=GMT
168 exim_msgdate -l -u -z -localhost_number=3 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
169 ****
170 0 TZ=GB
171 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 zzzzzz
172 ****
173 0 TZ=GMT
174 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 ZZZZZZ
175 ****
176 ### All msg-id types, all zones,  localhost_number = 13
177 0 TZ=GB
178 exim_msgdate -l -u -z -localhost_number=13 E000000-005XGK-00
179 ****
180 0 TZ=GMT
181 exim_msgdate -l -u -z -localhost_number=13 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
182 ****
183 0 TZ=GB
184 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 zzzzzz
185 ****
186 0 TZ=GMT
187 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 ZZZZZZ
188 ****
189 ### All msg-id types, all zones,  localhost_number = 20
190 ~0 TZ=GB
191 exim_msgdate -l -u -z -localhost_number=20 E000000-005XGK-00
192 ****
193 ~0 TZ=GMT
194 exim_msgdate -l -u -z -localhost_number=20 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
195 ****
196 ~0 TZ=GB
197 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 zzzzzz
198 ****
199 ~0 TZ=GMT
200 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 ZZZZZZ
201 ****
202 ### All msg-id types, all zones,  base=36
203 0 TZ=GB
204 exim_msgdate -l -u -z --b36 E000000-005XGK-00
205 ****
206 0 TZ=GMT
207 exim_msgdate -l -u -z --b36 000000-005XGK-00 ZZZZZZ-005XGK-R0 1PANS3-003FPJ-RR
208 ****
209 ~0 TZ=GB
210 exim_msgdate -l -u -z --b36 000000 1PANS3 zzzzzz
211 ****
212 0 TZ=GMT
213 exim_msgdate -l -u -z --b36 000000 1PANS3 ZZZZZZ
214 ****
215 ### All msg-id types, all zones,  base=62
216 0 TZ=GB
217 exim_msgdate -l -u -z --b62 E000000-005XGK-00
218 ****
219 0 TZ=GMT
220 exim_msgdate -l -u -z --b62 000000-005XGK-00 ZZZZZZ-005XGK-WF 1PANS3-003FPJ-TW
221 ****
222 0 TZ=GB
223 exim_msgdate -l -u -z --b62 000000 1PANS3 zzzzzz
224 ****
225 0 TZ=GMT
226 exim_msgdate -l -u -z --b62 000000 1PANS3 ZZZZZZ
227 ****