GitHub user sebbASF opened an issue:
https://github.com/apache/incubator-ponymail/issues/85
Bug: MID (medium) is not stable as it depends on the local timezone
The mid hash which is calculated in "medium" generator mode is based on
input which includes the value of the variable: mdatestring [1]
Now this variable is derived as follows [2]
mdatestring = time.strftime("%Y/%m/%d %H:%M:%S",
time.localtime(email.utils.mktime_tz(mdate)))
where mdate is the Date: header (as a default).
This means that the mdatestring value depends on the local timezone of the
server where the archiver script is run, i.e. the generated message-id will
change if the local timezone is changed.
So if the same mail is re-imported after changing the timezone, it will get
a different id.
Or if the mail archive is reloaded on a different host with a different TZ
setting.
That seems wrong; the id should only depend on the input mail message.
[1]
https://github.com/apache/incubator-ponymail/blob/master/tools/archiver.py#L305
[2]
https://github.com/apache/incubator-ponymail/blob/master/tools/archiver.py#L274
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---