[Bug 293918] kmail2 duplicates some messages

Thomas Arend thomas at arend-rhb.de
Fri May 18 22:55:32 BST 2012


https://bugs.kde.org/show_bug.cgi?id=293918

Thomas Arend <thomas at arend-rhb.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thomas at arend-rhb.de

--- Comment #1 from Thomas Arend <thomas at arend-rhb.de> ---
I can confirm a similar problem. To generate a test case for another problem I
send 10 mails on my mail server with the following command to my account:

for ((i=0; i<10 ; i++))
do 

  echo "Test #`printf %4.4d $i`" | mail -s "Filter Test #`printf %4.4d $i`"
thomas

done

Keep in mind that this command runs really fast and all messages have the same
time stamp.

I created a filter to move the messages into a Test folder.

Every time I start "receive messages" 9 of 10 messages are received again. But
they were deleted on the server with the first run. Restarting / crashing
kmail2 does not help! 

Only message #0003 is received only once! But this messages was not filtered as
it should. (Moved to Test folder)

I added a special filter to included a time stamp 2X-Filter-Test" for the
filtering which results in the following:

Filter log entry 
[...]
23:36:04] Evaluating filter rules: (match all of the following) "Subject"
<contains> "Filter Test"
[23:36:04] 1 = "Subject" <contains> "Filter Test" (Filter Test #0005)
[23:36:04] Filter rules have matched.
[23:36:04] Applying filter action: Pipe Through "formail -A "X-Filter-Test:
`date -R`""
[23:36:04] Evaluating filter rules: (match any of the following) "Subject"
<start-with> "Filter"
[23:36:04] 1 = "Subject" <start-with> "Filter" (Filter Test #0005)
[23:36:04] Filter rules have matched.
[23:36:04] Applying filter action: Move Into Folder "322"
[...]

A message looks after severals receives as following:
---BoM---
>From thomas at arend-rhb.de  Fri May 18 23: 32:07 2012
Return-Path: <thomas at arend-rhb.de>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on k2.arend.tksd
X-Spam-Status: No, score=-1.3 required=4.5 tests=AWL,BAYES_00,NO_RELAYS
autolearn=ham version=3.3.1
X-Spam-Spammy: 0.956-5766--1937h-14398s--0d--HContent-Transfer-Encoding:7bit,
0.955-38--13h-95s--1d--0000
X-Spam-Hammy: 0.000-1987--32095h-1s--0d--H*p:D*arend-rhb.de,
0.001-2--18h-0s--1d--H*UA:mailx
X-Original-To: thomas
Delivered-To: thomas at arend-rhb.de
Received: by k2.arend.tksd (Postfix, from userid 1000) id 6798F28B2F; Fri, 18
May 2012 23:06:23 +0200 (CEST)
Date: Fri, 18 May 2012 23:06:23 +0200
To: thomas at arend-rhb.de
Subject: Filter Test #0000
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: <20120518210623.6798F28B2F at k2.arend.tksd>
From: Thomas Arend <thomas at arend-rhb.de>
X-UIDL: `ZH!!@K3"!AdZ"!od4!!
X-Filter-Test: Fri, 18 May 2012 23:35:06 +0200
X-Filter-Test: Fri, 18 May 2012 23:35:44 +0200
X-Filter-Test: Fri, 18 May 2012 23:35:51 +0200
X-Filter-Test: Fri, 18 May 2012 23:35:58 +0200
X-Filter-Test: Fri, 18 May 2012 23:36:03 +0200
X-Filter-Test: Fri, 18 May 2012 23:41:03 +0200
X-Filter-Test: Fri, 18 May 2012 23:42:51 +0200
X-Filter-Test: Fri, 18 May 2012 23:51:25 +0200

Test #0000

---EoM---

So I conclude the messages are re-received after they were modified by the
filter.

The messages are received after each restart or crash of kmail2 and every time
when the received cycle starts automatically.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list