Strange future timestamp issue on some emails in KMail
Hi all. I'm at a bit of a loss with this one, and I'm not entirely sure that it's specifically an openSUSE issue, but I'm hoping someone here will at least be able to point me in the right direction. Setup: Ntop-NG running on a Raspberry Pi (Debian Bookworm), generating alert emails sent to a local mail server (running on a Debian Bookworm VM) using Dovecot for serving emails via IMAP (emails stored in ~/Maildir). Procmail running on the mail server sorting emails into specific sub-folders under the users' Maildir folders. KMail on Tumbleweed retrieving IMAP emails from that local Dovecot mail server. Timezone is Australian Central Summer Time (UTC+10:30), timezone is correct on desktop machine, (Tumbleweed), NTOP-NG and mail server. The timestamp in the KMail message list is exactly 10:30 ahead of the actual time the message was received from NTOP-NG (as seen by viewing the message source in Kmail, meaning that recent messages are being shown as received in the future. It's almost like the timezone offset is being applied incorrectly by KMail, but I cannot figure out why. The times for the same emails in the message list in Thunderbird are shown correctly, so it does look like a KMail issue, but why it only seems to apply to these specific messages in this specific folder has got me beat. Regards, -- ============================================================================== ============================ Rodney Baker rodney.baker@outlook.com.au ============================================================================== ============================
On 2024-01-27 08:46, Rodney Baker wrote:
Hi all. I'm at a bit of a loss with this one, and I'm not entirely sure that it's specifically an openSUSE issue, but I'm hoping someone here will at least be able to point me in the right direction.
Setup: Ntop-NG running on a Raspberry Pi (Debian Bookworm), generating alert emails sent to a local mail server (running on a Debian Bookworm VM) using Dovecot for serving emails via IMAP (emails stored in ~/Maildir).
Procmail running on the mail server sorting emails into specific sub-folders under the users' Maildir folders.
KMail on Tumbleweed retrieving IMAP emails from that local Dovecot mail server.
Timezone is Australian Central Summer Time (UTC+10:30), timezone is correct on desktop machine, (Tumbleweed), NTOP-NG and mail server.
The timestamp in the KMail message list is exactly 10:30 ahead of the actual time the message was received from NTOP-NG (as seen by viewing the message source in Kmail, meaning that recent messages are being shown as received in the future.
It's almost like the timezone offset is being applied incorrectly by KMail, but I cannot figure out why. The times for the same emails in the message list in Thunderbird are shown correctly, so it does look like a KMail issue, but why it only seems to apply to these specific messages in this specific folder has got me beat.
No idea, but maybe you could post the "Date:" header you see in "view source" and some of the received headers. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
On Saturday, 27 January 2024 23:56:27 ACDT Carlos E. R. wrote:
[...]
No idea, but maybe you could post the "Date:" header you see in "view source" and some of the received headers.
Kmail reports (with some details redacted): From: *ntop@ntop-pi.<[1]*localdomain> To: *u[2]*ser*@d*omain Date: *28 Jan 2024 10:06:20* Spam Status: *Spamassassin [3] * View Source reports: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on mail.<localdomain> X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.5 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=4.0.0 Received: from mail.<localdomain> (ntop-pi.<localdomain> [10.xxx.xxx.xxx]) by mail.<localdomain> (8.17.1.9/8.17.1.9/Debian-2) with ESMTP id 40RD6KgZ023092 for <user>@<localdomain>; Sat, 27 Jan 2024 23:36:21 +1030 Subject: ntopng @ <snipped> Date: Sat, 27 Jan 2024 23:36:20 It is currently 28/01/2024 01:40 here - according to KMail this message was received in the future (but the date header on the message is correct). It appears that KMail is for some reason adding the timezone offset to the date header. Regards, -- ============================================================================== ============================ Rodney Baker rodney.baker@outlook.com.au ============================================================================== ============================ -------- [1] mailto:ntop%40ntop-pi.vk5ztv.ampr.org [2] mailto:bakerr%40iinet.net.au [3] data:image/ PNG;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAABCAMAAADpTH4XAAAASFBMVEUA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAD/// +qqqoAAAD2cKDYAAAAGHRSTlMAAAAAAAAAAAAAAAAAAAAAAAAAAAD// wCysdQaAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAC0lEQVQImWMQxQIAEU8BpQ0ofWgAA AAASUVORK5CYII=
On 2024-01-27 16:08, Rodney Baker wrote:
On Saturday, 27 January 2024 23:56:27 ACDT Carlos E. R. wrote:
[...]
No idea, but maybe you could post the "Date:" header you see in "view
source" and some of the received headers.
Kmail reports (with some details redacted):
Subject: ntopng @ <snipped>
Date: Sat, 27 Jan 2024 23:36:20
Is that the actual date header? It doesn't have time zone information, so kmail is correct in giving you the wrong information. For example, on your email it is: Subject: Re: Strange future timestamp issue on some emails in KMail Date: Sun, 28 Jan 2024 01:38:42 +1030 You have to make the sender software add time zone info to the "Date:" header. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
On Sunday, 28 January 2024 02:05:35 ACDT Carlos E.R. wrote:
On 2024-01-27 16:08, Rodney Baker wrote:
On Saturday, 27 January 2024 23:56:27 ACDT Carlos E. R. wrote:
[...]
No idea, but maybe you could post the "Date:" header you see in "view
source" and some of the received headers.
Kmail reports (with some details redacted):
Subject: ntopng @ <snipped>
Date: Sat, 27 Jan 2024 23:36:20
Is that the actual date header? It doesn't have time zone information, so kmail is correct in giving you the wrong information.
For example, on your email it is:
Subject: Re: Strange future timestamp issue on some emails in KMail Date: Sun, 28 Jan 2024 01:38:42 +1030
You have to make the sender software add time zone info to the "Date:" header.
-- Cheers / Saludos,
Carlos E. R. (from 15.4 x86_64 at Telcontar)
Right, got it, thanks. So it is an ntop-ng issue - I'll have to raise a ticket with them then. Thanks for the tip. Regards, Rodney. -- ============================================================================== ============================ Rodney Baker rodney.baker@outlook.com.au ============================================================================== ============================
On Sunday, 28 January 2024 18:36:06 ACDT Rodney Baker wrote: [...]
You have to make the sender software add time zone info to the "Date:" header.
Right, got it, thanks. So it is an ntop-ng issue - I'll have to raise a ticket with them then.
Thanks for the tip.
Regards, Rodney.
Just a followup - found the problem with ntop-ng, reported it to the devs and they've ack'd it and pushed a fix already. Just waiting on the update to be published and available. Regards, Rodney. -- ============================================================================== ============================ Rodney Baker rodney.baker@outlook.com.au ============================================================================== ============================
participants (3)
-
Carlos E. R.
-
Carlos E.R.
-
Rodney Baker