Comment 61 for bug 883459

Revision history for this message
In , Andras Mantia (amantia) wrote :

 Which one gets duplicated, the spam (Donación de la Hermana Alice Jahab)
or the mail sent to @kde.org ([Bug 283548] Only first filter in chain works for incoming messages)?
I see the second (the kde.org mail) is deleted from inbox, so i guess that's not the problematic one.

The spam is more interesting. Can you paste the two filters that go through it from the akonadi_mailfiter_agentrc?
These ones:
[11:48:19] Evaluerer filterregler: (match all of the following) "<size>" <greater> "0"

[11:48:19] 1 = "<size>" <greater> "0" ( 14414 )

[11:48:19] Filterregler er blevet matchet.

[11:48:19] Applying filter action: Pipe Through "bogofilter -p -e"

[11:48:28] Evaluerer filterregler: (match any of the following) "X-Bogosity" <regexp> "(yes)|(spam\b)"

[11:48:28] 1 = "X-Bogosity" <regexp> "(yes)|(spam\b)" (Spam, tests=bogofilter, spamicity=1.000000, version=1.2.2)

What should happen here is:
- mail is moved from IMAP inbox to local folder
- mail is marked as spam and read (in the local folder)

From the IMAP log though what happens is:
- the mail is appended again to the inbox immediately after it is fetched and marked as spam and read (\Seen $JUNK)
- the original mail is deleted (two times!)
Seems like the filter actions are executed in wrong order, resulting in code duplication.