Utility: exim_msgdate
[exim.git] / test / scripts / 0000-Basic / 0700
1 # Exercising exim_msgdate
2 #
3 #
4 # Without this, runtest would munge all dates and message-ids,
5 # destroying the things we wish to test:
6 no_munge
7 #
8 ### A Message ID as it appears in an email:
9 exim_msgdate E1pAnS3-003fPj-Tw
10 ****
11 ### A Message ID as it appears in the exim log:
12 exim_msgdate 1pEPHo-005xgk-2e
13 ****
14 ### Just the date part of the Message ID:
15 ###    The Epoch ...
16 exim_msgdate 000000
17 ****
18 ### ... the script was under development at this time ...
19 exim_msgdate 1pEPHo
20 ****
21 ### ... the end of exim msg-id time
22 exim_msgdate zzzzzz
23 ****
24 ### All three time zones with a non-GMT time
25 exim_msgdate -l -u -z 1o6fde-003z7E-PS
26 ****
27 ### All three types of message-ids, at once:
28 exim_msgdate E000000-005XGK-00 1pAnS3-003fPj-Tw zzzzzz
29 ****
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
33 ****
34 exim_msgdate --base36 ZZZZZZ-005XGK-ZZ
35 ****
36 255
37 exim_msgdate --base36 zzzzzz-005xgk-zz
38 ****
39 ### An invalid base option
40 255
41 exim_msgdate --base 32 ZZZZZZ
42 ****
43 ### Message IDs generated on a standard system
44 ### with high-resolution Message-ID timestamps
45 exim_msgdate --base62 000000-005XGK-00
46 ****
47 exim_msgdate --base62 ZZZZZZ-005XGK-ZZ
48 ****
49 exim_msgdate --base62 zzzzzz-005xgk-zz
50 ****
51 ### Some strings that are similar to, but not Exim Message IDs:
52 exim_msgdate  zzzzzz-005xgk-z@
53 ****
54 exim_msgdate  zzzzz-z005xgk-zz
55 ****
56 exim_msgdate  zzzzzzz
57 ****
58 ### Print date with localtime
59 exim_msgdate -local 000000
60 ****
61 exim_msgdate -local E1pAnS3-003fPj-Tw
62 ****
63 exim_msgdate -local zzzzzz-003fPj-zz
64 ****
65 ### Print date with timezone GMT/Zulu
66 exim_msgdate -GMT 000000-003fPj-00
67 ****
68 exim_msgdate -GMT E1pAnS3-003fPj-Tw
69 ****
70 exim_msgdate -zulu E1pAnS3-003fPj-Tw
71 ****
72 exim_msgdate -zulu EZZZZZZ-003fPj-ZZ
73 ****
74 ### Print date as seconds since the UNIX epoch.
75 exim_msgdate -unix E000000-003fPj-00
76 ****
77 exim_msgdate -unix E1pAnS3-003fPj-tw
78 ****
79 exim_msgdate -unix Ezzzzzz-003fpj-zz
80 ****
81 ### Show the process id too
82 exim_msgdate -unix --pid EZZZZZZ-003fPj-ZZ
83 ****
84 exim_msgdate -pid EZZZZZZ-003fPj-ZZ
85 ****
86 exim_msgdate -local --pid EZZZZZZ-003fPj-ZZ
87 ****
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
90 ****
91 exim_msgdate --localhost_number 11 -base 62 EZZZZZZ-003FPJ-ZZ
92 ****
93 exim_msgdate --localhost_number 9 -base 36 EZZZZZZ-003FPJ-ZZ
94 ****
95 255
96 exim_msgdate --localhost_number 11 -base 36 EZZZZZZ-003FPJ-ZZ
97 ****
98 exim_msgdate -localhost_number 11 --local -base 62 EZZZZZZ-003FPJ-ZZ
99 ****
100 exim_msgdate --localhost_number -1 -base 36 EZZZZZZ-003FPJ-ZZ
101 ****
102 255
103 exim_msgdate --localhost_number 19 -base 62 EZZZZZZ-003FPJ-ZZ
104 ****
105 ### From here as 701 - 703
106 ### Each msg-id type, all zone
107 exim_msgdate -l -u -z -pid E000000-005XGK-00
108 ****
109 exim_msgdate -l -u -z -pid 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
110 ****
111 exim_msgdate -l -u -z -pid 000000 1PANS3 zzzzzz
112 ****
113 exim_msgdate -l -u -z -pid 000000 1PANS3 ZZZZZZ
114 ****
115 ### All msg-id types, all zones,  localhost_number = 3
116 exim_msgdate -l -u -z -localhost_number=3 E000000-005XGK-00
117 ****
118 exim_msgdate -l -u -z -localhost_number=3 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
119 ****
120 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 zzzzzz
121 ****
122 exim_msgdate -l -u -z -localhost_number=3 000000 1PANS3 ZZZZZZ
123 ****
124 ### All msg-id types, all zones,  localhost_number = 13
125 exim_msgdate -l -u -z -localhost_number=13 E000000-005XGK-00
126 ****
127 exim_msgdate -l -u -z -localhost_number=13 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
128 ****
129 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 zzzzzz
130 ****
131 exim_msgdate -l -u -z -localhost_number=13 000000 1PANS3 ZZZZZZ
132 ****
133 ### All msg-id types, all zones,  localhost_number = 20
134 255
135 exim_msgdate -l -u -z -localhost_number=20 E000000-005XGK-00
136 ****
137 255
138 exim_msgdate -l -u -z -localhost_number=20 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
139 ****
140 255
141 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 zzzzzz
142 ****
143 255
144 exim_msgdate -l -u -z -localhost_number=20 000000 1PANS3 ZZZZZZ
145 ****
146 ### All msg-id types, all zones,  base=36
147 exim_msgdate -l -u -z --b36 E000000-005XGK-00
148 ****
149 255
150 exim_msgdate -l -u -z --b36 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
151 ****
152 255
153 exim_msgdate -l -u -z --b36 000000 1PANS3 zzzzzz
154 ****
155 exim_msgdate -l -u -z --b36 000000 1PANS3 ZZZZZZ
156 ****
157 ### All msg-id types, all zones,  base=62
158 exim_msgdate -l -u -z --b62 E000000-005XGK-00
159 ****
160 exim_msgdate -l -u -z --b62 000000-005XGK-00 ZZZZZZ-005XGK-zz 1PANS3-003FPJ-TW
161 ****
162 exim_msgdate -l -u -z --b62 000000 1PANS3 zzzzzz
163 ****
164 exim_msgdate -l -u -z --b62 000000 1PANS3 ZZZZZZ
165 ****