diff options
author | Andrew Aitchison <exim@aitchison.me.uk> | 2023-02-12 11:28:49 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2023-02-16 18:49:36 +0000 |
commit | 7b5fe03f9c6c2a322dc385ab78b60ccfe1fe33fe (patch) | |
tree | 951512297353d91e48381a747c2383b35dc6edb0 /test/stdout | |
parent | 73d6e13f9b0cc4f708210372c59893950b3f7097 (diff) | |
download | exim4-7b5fe03f9c6c2a322dc385ab78b60ccfe1fe33fe.tar.gz |
Utility: exim_msgdate
Diffstat (limited to 'test/stdout')
-rw-r--r-- | test/stdout/0700 | 229 | ||||
-rw-r--r-- | test/stdout/0701 | 155 | ||||
-rw-r--r-- | test/stdout/0702 | 134 | ||||
-rw-r--r-- | test/stdout/0703 | 74 |
4 files changed, 592 insertions, 0 deletions
diff --git a/test/stdout/0700 b/test/stdout/0700 new file mode 100644 index 000000000..2e47baa35 --- /dev/null +++ b/test/stdout/0700 @@ -0,0 +1,229 @@ +### A Message ID as it appears in an email: +2022-12-29 07:35:43.928000 GMT +### A Message ID as it appears in the exim log: +2023-01-08 06:36:04.082000 GMT +### Just the date part of the Message ID: +### The Epoch ... +1970-01-01 01:00:00.000000 BST +### ... the script was under development at this time ... +2023-01-08 06:36:04.000000 GMT +### ... the end of exim msg-id time +3769-12-05 03:13:03.000000 GMT +### All three time zones with a non-GMT time +1656539662.789000 +2022-06-29 21:54:22.789000 +2022-06-29 22:54:22.789000 BST +### All three types of message-ids, at once: +1970-01-01 01:00:00.000000 BST +2022-12-29 07:35:43.928000 GMT +3769-12-05 03:13:03.000000 GMT +### Message IDs generated on a system, such as Mac or Cygwin, +### which has low-resolution Message-ID timestamps +1970-01-01 01:00:00.000000 BST +2038-12-24 05:45:36.295000 GMT +### An invalid base option +### Message IDs generated on a standard system +### with high-resolution Message-ID timestamps +1970-01-01 01:00:00.000000 BST +3002-09-30 13:51:46.102500 BST +3769-12-05 03:13:04.921500 GMT +### Some strings that are similar to, but not Exim Message IDs: +### Print date with localtime +1970-01-01 01:00:00.000000 BST +2022-12-29 07:35:43.928000 GMT +3769-12-05 03:13:04.921500 GMT +### Print date with timezone GMT/Zulu +1970-01-01 00:00:00.000000 +2022-12-29 07:35:43.928000 +2022-12-29 07:35:43.928000 +3002-09-30 12:51:46.102500 +### Print date as seconds since the UNIX epoch. +0.000000 +1672299344.734000 +56800235584.921500 +### Show the process id too +32590299106.102500 pid 874183 +3002-09-30 13:51:46.102500 BST pid 874183 +3002-09-30 13:51:46.102500 BST pid 874183 +### Override the value of localhost_number set in the exim configuation file +3002-09-30 13:51:45.025000 BST +3002-09-30 13:51:45.025000 BST +2038-12-24 05:45:38.950000 GMT +3002-09-30 13:51:45.025000 BST +2038-12-24 05:45:48.950000 GMT +### From here as 701 - 703 +### Each msg-id type, all zone +0.000000 pid 1319504 +1970-01-01 00:00:00.000000 pid 1319504 +1970-01-01 01:00:00.000000 BST pid 1319504 +0.000000 pid 1319504 +1970-01-01 00:00:00.000000 pid 1319504 +1970-01-01 01:00:00.000000 BST pid 1319504 +32590299106.921500 pid 1319504 +3002-09-30 12:51:46.921500 pid 1319504 +3002-09-30 13:51:46.921500 BST pid 1319504 +1288014663.915000 pid 774213 +2010-10-25 13:51:03.915000 pid 774213 +2010-10-25 14:51:03.915000 BST pid 774213 +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 3 +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +32590299121.215000 +3002-09-30 12:52:01.215000 +3002-09-30 13:52:01.215000 BST +1288014669.150000 +2010-10-25 13:51:09.150000 +2010-10-25 14:51:09.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 13 +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +32590299111.215000 +3002-09-30 12:51:51.215000 +3002-09-30 13:51:51.215000 BST +1288014659.150000 +2010-10-25 13:50:59.150000 +2010-10-25 14:50:59.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +102953955.000000 +1973-04-06 14:19:15.000000 +1973-04-06 15:19:15.000000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +102953955.000000 +1973-04-06 14:19:15.000000 +1973-04-06 15:19:15.000000 BST +2176782335.000000 +2038-12-24 05:45:35.000000 +2038-12-24 05:45:35.000000 GMT +### All msg-id types, all zones, base=62 +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +32590299106.921500 +3002-09-30 12:51:46.921500 +3002-09-30 13:51:46.921500 BST +1288014663.915000 +2010-10-25 13:51:03.915000 +2010-10-25 14:51:03.915000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST + +******** SERVER ******** +### A Message ID as it appears in an email: +### A Message ID as it appears in the exim log: +### Just the date part of the Message ID: +### The Epoch ... +### ... the script was under development at this time ... +### ... the end of exim msg-id time +### All three time zones with a non-GMT time +### All three types of message-ids, at once: +### Message IDs generated on a system, such as Mac or Cygwin, +### which has low-resolution Message-ID timestamps +### An invalid base option +### Message IDs generated on a standard system +### with high-resolution Message-ID timestamps +### Some strings that are similar to, but not Exim Message IDs: +### Print date with localtime +### Print date with timezone GMT/Zulu +### Print date as seconds since the UNIX epoch. +### Show the process id too +### Override the value of localhost_number set in the exim configuation file +### From here as 701 - 703 +### Each msg-id type, all zone +### All msg-id types, all zones, localhost_number = 3 +### All msg-id types, all zones, localhost_number = 13 +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +### All msg-id types, all zones, base=62 diff --git a/test/stdout/0701 b/test/stdout/0701 new file mode 100644 index 000000000..533cba4cc --- /dev/null +++ b/test/stdout/0701 @@ -0,0 +1,155 @@ +### Each msg-id type, all zone +-3.000000 pid 1319504 +1969-12-31 23:59:57.000000 pid 1319504 +1970-01-01 00:59:57.000000 BST pid 1319504 +-3.000000 pid 1319504 +1969-12-31 23:59:57.000000 pid 1319504 +1970-01-01 00:59:57.000000 BST pid 1319504 +32590299121.215000 pid 1319504 +3002-09-30 12:52:01.215000 pid 1319504 +3002-09-30 13:52:01.215000 BST pid 1319504 +1288014669.150000 pid 774213 +2010-10-25 13:51:09.150000 pid 774213 +2010-10-25 14:51:09.150000 BST pid 774213 +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 3 +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +32590299121.215000 +3002-09-30 12:52:01.215000 +3002-09-30 13:52:01.215000 BST +1288014669.150000 +2010-10-25 13:51:09.150000 +2010-10-25 14:51:09.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 13 +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +32590299111.215000 +3002-09-30 12:51:51.215000 +3002-09-30 13:51:51.215000 BST +1288014659.150000 +2010-10-25 13:50:59.150000 +2010-10-25 14:50:59.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +102953955.000000 +1973-04-06 14:19:15.000000 +1973-04-06 15:19:15.000000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +102953955.000000 +1973-04-06 14:19:15.000000 +1973-04-06 15:19:15.000000 BST +2176782335.000000 +2038-12-24 05:45:35.000000 +2038-12-24 05:45:35.000000 GMT +### All msg-id types, all zones, base=62 +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +32590299121.215000 +3002-09-30 12:52:01.215000 +3002-09-30 13:52:01.215000 BST +1288014669.150000 +2010-10-25 13:51:09.150000 +2010-10-25 14:51:09.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST + +******** SERVER ******** +### Each msg-id type, all zone +### All msg-id types, all zones, localhost_number = 3 +### All msg-id types, all zones, localhost_number = 13 +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +### All msg-id types, all zones, base=62 diff --git a/test/stdout/0702 b/test/stdout/0702 new file mode 100644 index 000000000..c918ad633 --- /dev/null +++ b/test/stdout/0702 @@ -0,0 +1,134 @@ +### Each msg-id type, all zone +-13.000000 pid 1319504 +1969-12-31 23:59:47.000000 pid 1319504 +1970-01-01 00:59:47.000000 BST pid 1319504 +-13.000000 pid 1319504 +1969-12-31 23:59:47.000000 pid 1319504 +1970-01-01 00:59:47.000000 BST pid 1319504 +32590299111.215000 pid 1319504 +3002-09-30 12:51:51.215000 pid 1319504 +3002-09-30 13:51:51.215000 BST pid 1319504 +1288014659.150000 pid 774213 +2010-10-25 13:50:59.150000 pid 774213 +2010-10-25 14:50:59.150000 BST pid 774213 +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 3 +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +32590299121.215000 +3002-09-30 12:52:01.215000 +3002-09-30 13:52:01.215000 BST +1288014669.150000 +2010-10-25 13:51:09.150000 +2010-10-25 14:51:09.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 13 +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +32590299111.215000 +3002-09-30 12:51:51.215000 +3002-09-30 13:51:51.215000 BST +1288014659.150000 +2010-10-25 13:50:59.150000 +2010-10-25 14:50:59.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +### All msg-id types, all zones, base=62 +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +32590299111.215000 +3002-09-30 12:51:51.215000 +3002-09-30 13:51:51.215000 BST +1288014659.150000 +2010-10-25 13:50:59.150000 +2010-10-25 14:50:59.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST + +******** SERVER ******** +### Each msg-id type, all zone +### All msg-id types, all zones, localhost_number = 3 +### All msg-id types, all zones, localhost_number = 13 +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +### All msg-id types, all zones, base=62 diff --git a/test/stdout/0703 b/test/stdout/0703 new file mode 100644 index 000000000..128415026 --- /dev/null +++ b/test/stdout/0703 @@ -0,0 +1,74 @@ +### Each msg-id type, all zone +### All msg-id types, all zones, localhost_number = 3 +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +-3.000000 +1969-12-31 23:59:57.000000 +1970-01-01 00:59:57.000000 BST +32590299121.215000 +3002-09-30 12:52:01.215000 +3002-09-30 13:52:01.215000 BST +1288014669.150000 +2010-10-25 13:51:09.150000 +2010-10-25 14:51:09.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 13 +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +-13.000000 +1969-12-31 23:59:47.000000 +1970-01-01 00:59:47.000000 BST +32590299111.215000 +3002-09-30 12:51:51.215000 +3002-09-30 13:51:51.215000 BST +1288014659.150000 +2010-10-25 13:50:59.150000 +2010-10-25 14:50:59.150000 BST +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +56800235583.000000 +3769-12-05 03:13:03.000000 +3769-12-05 03:13:03.000000 GMT +0.000000 +1970-01-01 00:00:00.000000 +1970-01-01 01:00:00.000000 BST +1288014663.000000 +2010-10-25 13:51:03.000000 +2010-10-25 14:51:03.000000 BST +32590299105.000000 +3002-09-30 12:51:45.000000 +3002-09-30 13:51:45.000000 BST +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +### All msg-id types, all zones, base=62 + +******** SERVER ******** +### Each msg-id type, all zone +### All msg-id types, all zones, localhost_number = 3 +### All msg-id types, all zones, localhost_number = 13 +### All msg-id types, all zones, localhost_number = 20 +### All msg-id types, all zones, base=36 +### All msg-id types, all zones, base=62 |