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)
4.14.10 is a very old version (5.2 was released 2 weeks ago) and this bug is fixed from long time.