Bug 295011 - bad process by filter on sent messages
Summary: bad process by filter on sent messages
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 1.99.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-28 17:47 UTC by Daniel Moyne
Modified: 2017-01-07 22:49 UTC (History)
2 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 Daniel Moyne 2012-02-28 17:47:44 UTC
Version:           1.99.0 (using KDE 4.8.0) 
OS:                Linux

I have this type of filter that on detection of "[Généalogie]" must move received messages and sent messages that contain "[Généalogie]" in subject in a dedicated folder : no problem with received messages but this time on sent messages I received a notitication saying that the sent message (where the filter is applicable) was correctly moved to the dedicated folder but the it was moved back in "sent-messages" folder.  If the I apply manually the filter to the message located in "sent-messages" folder it is coorectly moved to the dedicated folder as supposed to be done from the very beginning.

Reproducible: Always

Steps to Reproduce:
- build a filter acting on both sent and received messages that moves messages containing "[Généalogie]" in subject by moving messages to a dedicated folder.
- send a dummy message  with "[Généalogie]" in subject

Actual Results:  
message stays in "sent-messages" folder

Expected Results:  
sent message moved to a dedicated folder

OS: Linux (x86_64) release 3.2.0-17-generic
Compiler: gcc
Comment 1 Graeme Hewson 2012-04-30 13:08:48 UTC
I confirm this in 4.8.2.

I want all mail I send to a particular address to be saved in a folder other than sent-mail. I set up a filter and tick "Apply this filter to sent messages" in the Advanced tab. The filter log shows the filter being applied, but the mail stays in the sent-mail folder. If I also tick "Apply this filter before sending messages", the filter log shows the filter being applied twice, but still the mail stays in sent-mail.

This worked as expected in kmail1 / KDE 3.
Comment 2 Graeme Hewson 2012-10-07 10:25:28 UTC
This is now working for me in 4.9.2 with "Apply this filter to sent messages"; the message is correctly moved to the specified folder.

However, if "Apply this filter before sending messages" is ticked, whether or not "Apply this filter to sent messages" is also ticked, the sent message is moved to the sent-mail folder. Before then, just after pressing Ctrl+Enter in the composer window, the folder list shows the message being moved to the folder specified in the filter, but only briefly.

The filter log says:
Applying filter action: Move Into Folder "akonadi-local/Test"
for both "before" and "after" conditions.
Comment 3 Unknown 2013-01-23 10:11:29 UTC
Please, make a control with "akonadi console"
Choose "DB Browser", "collectiontable", "Refresh"
Get a look to the column "remoteId".
Are there any cell(s) with nothing? If yes, let me/us know by copying the raw(s).
Comment 4 Denis Kurz 2016-09-24 18:04:28 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 22:49:16 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.