Bug 300585 - Kmail applies only the first of multiple rules within a filter.
Summary: Kmail applies only the first of multiple rules within a filter.
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 4.8
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-25 01:52 UTC by E.T. Anderson
Modified: 2012-10-13 11:16 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description E.T. Anderson 2012-05-25 01:52:03 UTC
I have several filter rules where multiple actions are specified, such as 1. move to folder X and 2. mark message as read. Kmail will do whatever action is specified first, but will not perform subsequent actions. If mark as read is first, the message will be marked as read but not moved to folder X. If move to folder is first, the message will be moved, but not marked as read.

Reproducible: Always

Steps to Reproduce:
1. Create a filter with multiple actions
2. Check email
Actual Results:  
Kmail will apply only the first of the rules you specify in the filter.

Expected Results:  
Kmail should apply all actions within a filter. If I went to the trouble to specify to move to a folder AND mark as read, I expect Kmail to perform BOTH actions, not one or the other.

Please note that I am not talking about multiple filters, I am talking about multiple actions within a single filter.
Comment 1 Laurent Montel 2012-05-25 06:10:00 UTC
kmail version ?
please your filter here.

"mark as read" only work ?
Comment 2 E.T. Anderson 2012-05-25 14:49:42 UTC
I thought I entered the Kmail version as part of the bug, but it's 4.8.2, the package for Ubuntu 12.04

Only one of the two actions will work. Either "mark as read" OR "move to folder" work by themselves, but when the two are combined in one filter, only one is executed.

Here's a filter that exhibits the bug:

[Filter #0]
Applicability=0
AutomaticName=true
ConfigureShortcut=false
ConfigureToolbar=false
Enabled=true
Icon=system-run
StopProcessingHere=false
ToolbarName=<Subject>: Packet Loss
action-args-0=Work/Inbox/Packet Loss
action-args-1=R
action-name-0=transfer
action-name-1=set status
actions=2
apply-on=check-mail,manual-filtering
contentsA=Packet Loss
contentsB=Packloss
contentsC=Packetloss
fieldA=Subject
fieldB=Subject
fieldC=Subject
funcA=contains
funcB=contains
funcC=contains
identifier=5EMPp0iym9hvgFsg
name=<Subject>: Packet Loss
operator=or
rules=3

[General]
filters=1
Comment 3 stefanfrank 2012-08-03 10:10:42 UTC
Hi,
I tried it on my machine. No problem here!
Maybe it is already fixed?

KDE 4.8.4, fedora 17
Comment 4 András Manţia 2012-10-13 11:16:40 UTC
I just tested in 4.9.2 and it works as expected. Please reopen if you still see the bug with the latest version.