Bug 362599 - Some kmail filters are not applied
Summary: Some kmail filters are not applied
Status: RESOLVED FIXED
Alias: None
Product: kdepim
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-02 18:31 UTC by Hatto Von Hatzfeld
Modified: 2016-05-02 19:09 UTC (History)
2 users (show)

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


Attachments
Bash script used to repair a broken filter set (1.42 KB, text/plain)
2016-05-02 18:31 UTC, Hatto Von Hatzfeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hatto Von Hatzfeld 2016-05-02 18:31:21 UTC
Created attachment 98750 [details]
Bash script used to repair a broken filter set

Using the copy function in kmail dialogue causes some filters not to be applied afterwards.

Steps to reproduce the bug:
- open the kmail filter dialogue
- create a simple filter "test one", which marks a mail as ham if the subject contains "This is test one"
- click the copy button, rename the new filter as "test two" and changed the search pattern to "This is test two"
- close the kmail filter dialogue by "OK"
- open the filter protocol, make this function show _all_ details
- right click on any mail to apply "test one"
- right click on the same mail to apply "test two"

Result: Both filters use the same pattern

Expected result: Each of the two filters will use its own pattern

I think I have found the reason of this bug and a workaround: Exporting such a filter set, I find duplicate identifiers in the exported file. When I apply the script attached below and reimport its result (after having deleted the buggy filters), the filters do not show the buggy behaviour any more.

My system: OpenSuse 42.1 Leap with kmail 4.14.10 (German)
Comment 1 Laurent Montel 2016-05-02 19:09:19 UTC
4.14.10 is a very old version (5.2 was released 2 weeks ago)
and this bug is fixed from long time.