Mailing List Archive

[Bug 2956] util to convert message id to human-readable time
https://bugs.exim.org/show_bug.cgi?id=2956

--- Comment #7 from Andrew Aitchison <exim@aitchison.me.uk> ---
> It's using a hardwired config file path, at least in the testsuite.
> Noticing the -C the testharness gave it would be good;

I've got that working, which confuses me. I had expected that to pass one of
the configs in test/confs/

> but for production use - how about using `exim -bP localhost_number'
> as a default for no "-C foo" given?

That makes some sense, but exim_msgtime has perl taint set, so I cannot
easily run a binary by name given as an argument.

Also, do we know the name of the exim executable at make time ?
I think $(BIN_DIRECTORY) gives us the path, but Debian and Ubuntu change the
name to exim4.

It isn't working in attachment 1435, but after a bug-fix, the build now
correctly writes the configfile list into the script and I can search that for
localhost_number.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

Andrew Aitchison <exim@aitchison.me.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #1435|0 |1
is obsolete| |

--- Comment #11 from Andrew Aitchison <exim@aitchison.me.uk> ---
Created attachment 1436
--> https://bugs.exim.org/attachment.cgi?id=1436&action=edit
Revised complete patch against current exim master

I think this is complete now.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

--- Comment #12 from Jeremy Harris <jgh146exb@wizmail.org> ---
Looking good. One issue in timezone handling:

$ eximdir/exim_msgdate -C /data/jgh/git/exim/test/test-config
1pEPHo-005xgk-2e
2023-01-08 06:36:04.082000 GMT
$ TZ=PDT eximdir/exim_msgdate -C /data/jgh/git/exim/test/test-config
1pEPHo-005xgk-2e
2023-01-08 06:36:04.082000 PDT
$

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

--- Comment #13 from Andrew Aitchison <exim@aitchison.me.uk> ---
Created attachment 1437
--> https://bugs.exim.org/attachment.cgi?id=1437&action=edit
timezone.sanity.patch

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

--- Comment #14 from Andrew Aitchison <exim@aitchison.me.uk> ---
> --- Comment #12 from Jeremy Harris <jgh146exb@wizmail.org> ---
> Looking good. One issue in timezone handling:
>
> $ eximdir/exim_msgdate -C /data/jgh/git/exim/test/test-config 1pEPHo-005xgk-2e
> 2023-01-08 06:36:04.082000 GMT
> $ TZ=PDT eximdir/exim_msgdate -C /data/jgh/git/exim/test/test-config 1pEPHo-005xgk-2e
> 2023-01-08 06:36:04.082000 PDT

Do you have a PDT zoneinfo file ?
I don't but do have PST8PDT, and

$ TZ=PST8PDT ~eximtest/git/Exim/exim/src/build-Linux-x86_64/exim_msgdate
1pEPHo-005xgk-2e
2023-01-07 22:36:04.082000 PST

This is going to bite other users, so I check that the environment variables in
man
tzset are sane. With patch 1437 (as well as 1436) I now get

$ TZ=PDT ~eximtest/git/Exim/exim/src/build-Linux-x86_64/exim_msgdate
1pEPHo-005xgk-2e
Cannot read timezone file /usr/share/zoneinfo/PDT (from TZDIR/TZ)
'man tzset' may help.
2023-01-08 06:36:04.082000 PDT

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED

--- Comment #15 from Jeremy Harris <jgh146exb@wizmail.org> ---
Thanks. Committed as 7b5fe03f9c6c.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|4.96+ |4.97

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|4.97 |4.96
Target Milestone|Exim 4.96 |Exim 4.97

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2956] util to convert message id to human-readable time [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2956

--- Comment #16 from Andrew Aitchison <exim@aitchison.me.uk> ---
Created attachment 1438
--> https://bugs.exim.org/attachment.cgi?id=1438&action=edit
Mention exim_msgdate in ChangeLog and NewStuff

Mention exim_msgdate in ChangeLog and NewStuff

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##