Bug 300352 - Corrupted From_ line with a space in the time step after colon and 2DIGIT Minutes when filtering with formail
Summary: Corrupted From_ line with a space in the time step after colon and 2DIGIT Min...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 4.8.3
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-20 12:44 UTC by Thomas Arend
Modified: 2017-01-07 22:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of message source code (99.99 KB, image/png)
2012-05-20 12:44 UTC, Thomas Arend
Details
Screen shot of message list (43.94 KB, image/png)
2012-05-20 12:45 UTC, Thomas Arend
Details
To mbox exported mails (109.12 KB, application/mbox)
2012-05-20 12:54 UTC, Thomas Arend
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Arend 2012-05-20 12:44:22 UTC
Created attachment 71236 [details]
Screenshot of message source code

When you receive many 100 or more messages some messages show a corrupted From_ line in the message source. You will find an extra space in the time stamp:  ...14: 31:55 ...

The message is filtered multiple times by the same filter and sometime multiple times in teh message list. See attachments.

---
From thomas@arend-rhb.de  Sun May 20 14: 31:55 2012
Return-Path: <thomas@arend-rhb.de>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on k2.arend.tksd
X-Spam-Status: No, score=-1.9 required=4.5 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.3.1
X-Spam-Spammy: 0.952-5592--2128h-14433s--0d--HContent-Transfer-Encoding:7bit, 0.911-1516--1758h-6120s--0d--H*c:us-ascii
X-Spam-Hammy: 0.000-13--209h-0s--0d--H*u:Heirloom, 0.000-13--209h-0s--0d--H*UA:Heirloom
X-Original-To: thomas
Delivered-To: thomas@arend-rhb.de
Received: by k2.arend.tksd (Postfix, from userid 1000) id 6F70A28B32; Sun, 20 May 2012 14:25:20 +0200 (CEST)
Date: Sun, 20 May 2012 14:25:20 +0200
To: thomas@arend-rhb.de
Subject: Filter Test 0068
User-Agent: Heirloom mailx 12.2 01/07/07
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <20120520122520.6F70A28B32@k2.arend.tksd>
From: Thomas Arend <thomas@arend-rhb.de>
X-UIDL: 7P~"!P2_!!?pR"!'')"!
X-Filter-Test: Sun, 20 May 2012 14:31:55 +0200
X-Filter-Test: Sun, 20 May 2012 14:31:56 +0200
X-Filter-Test: Sun, 20 May 2012 14:31:56 +0200
X-Filter-Test: Sun, 20 May 2012 14:31:57 +0200

Test #0068 

---
Comment 1 Thomas Arend 2012-05-20 12:45:37 UTC
Created attachment 71237 [details]
Screen shot of message list

This sreen shot shows the message list window with multilpe messages.
Comment 2 Thomas Arend 2012-05-20 12:54:26 UTC
Created attachment 71240 [details]
To mbox exported mails

You may notice the additional From_ lines at the beginning from messages not in the selected list.

From unknown@unknown.invalidSun May 20 14:47:11 2012

Notice further the two From_ lines:

From thomas@arend-rhb.de Sun, 20 May 2012 14:25:20 +0200
From thomas@arend-rhb.de  Sun May 20 14: 31:55 2012

Expected is one From_ line wth the date in ctime format:
From thomas@arend-rhb.de  Sun May 20 14:25:20 2012
Comment 3 Thomas Arend 2012-05-20 13:37:57 UTC
One reason for the additional From_ line ma be, that the message was passed through formail to add a variable in the header. When you pass a message through a formail filter

   formail -A "X-Filter-Test: `date -R`"

a From_ line is added with a space (made visible by an _ ) between colon and 2DIGIT minute. 

   From thomas@arend-rhb.de  Sun May 20 15:_30:54 2012

Filtering on command line with formail inserts a correct From_ line.

   From thomas@arend-rhb.de  Sun May 20 15:37:41 2012
Comment 4 Thomas Arend 2012-05-20 14:22:44 UTC
This error is also in Kmail Version 1.36.6 with the difference that  both From_ line have a time in  ctime format and there is no additional space between the ":" and the 2DIGIT Minutes.

---
From thomas@arend-rhb.de Tue May 15 22:01:41 2012
From thomas@arend-rhb.de  Sun May 20 16:16:08 2012
Return-Path: <thomas@arend-rhb.de>
[...]
X-Original-To: thomas
Delivered-To: thomas@arend-rhb.de
Received: by k2.arend.tksd (Postfix, from userid 1000)
        id 1A05E28A8B; Tue, 15 May 2012 22:01:41 +0200 (CEST)
Date: Tue, 15 May 2012 22:01:41 +0200
To: thomas@arend-rhb.de
Subject: test
User-Agent: Heirloom mailx 12.2 01/07/07
MIME-Version: 1.0
Content-Type: text/plain;
  charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20120515200142.1A05E28A8B@k2.arend.tksd>
From: thomas@arend-rhb.de (Thomas Arend)
X-UIDL: MRF!!JWc"!8Kh"!9k$#!
Status: RO
X-Status: R
X-KMail-EncryptionState: N
X-KMail-SignatureState: N
X-KMail-MDN-Sent:  
X-UID: 

test

---
Comment 5 Laurent Montel 2012-05-22 20:04:22 UTC
I don't understand.
Bug is from your formail  no ?
Kmail doesn't add it.
Otherwise give me the filter which makes it.
Thanks
Comment 6 Thomas Arend 2012-05-23 19:07:21 UTC
(In reply to comment #5)
> I don't understand.
> Bug is from your formail  no ?
> Kmail doesn't add it.
> Otherwise give me the filter which makes it.
> Thanks

"formail" works fine on the command line,

If you pipe a mail through "formail" by kmail the white space appears before the minutes. Construct a filter that will fit every time and send the message through "formail".

Who else could add a white space when not kmail? I see not need for formail to say "Upps, Im called by kmail! Let me add a nasty white space to confuse the caller."
Comment 7 Denis Kurz 2016-09-24 18:16:10 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 8 Denis Kurz 2017-01-07 22:23:25 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.