Bug 140106 - Filter that should move the message to another IMAP folder doesn't work.
Summary: Filter that should move the message to another IMAP folder doesn't work.
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.9.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 158764 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-15 15:25 UTC by Michal Sojka
Modified: 2010-01-02 00:27 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
wireshark dump of various IMAP operations in case that's useful. (886.66 KB, application/octet-stream)
2007-08-04 09:54 UTC, Al Muckart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Sojka 2007-01-15 15:25:47 UTC
Version:           1.9.5 (using KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-5 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.18-3-686

I have created the filter with no criteria and one action, which is to move the message to another IMAP folder. I use this filter only on manual filtering. The reason for this is to be able to sort my mails using keyboard shortcuts.

When I run the filter, the messages disappears from the actual folder for a while (cca 1 second) and then appears in the same folder instead of in the folder where the filter should move it.
Comment 1 Daniel Hahler 2007-05-23 14:12:13 UTC
The behaviour you are describing matches "filter did not match".

Are you sure that the filter should match?
Have you tried simplifying the filter and/or filter on another field?
Does it work when moving the message to a local folder instead?

And last but not least: please retry it with KDE 3.5.7, there have been quite a lot IMAP fixes there.
Comment 2 Michal Sojka 2007-06-04 09:17:59 UTC
On 23. May 2007, dAniel hAhler wrote:
> ------- The behaviour you are describing matches "filter did not match".
>
> Are you sure that the filter should match?

Yes. I don't have any criteria for matching. Event if I specify some (e.g. 
regexp .*) the behavior is the same.

> Have you tried simplifying the filter and/or filter on another field?

There is no way to simplify it :)

> Does it work when moving the message to a local folder instead?

Yes, moving to a local folder works perfectly.

> And last but not least: please retry it with KDE 3.5.7, there have been
> quite a lot IMAP fixes there.

I've tried it but without success.

Regards
Michal
Comment 3 Al Muckart 2007-08-04 04:33:22 UTC
I can confirm this bug on kmail 1.9.7 using KDE 3.5.7. 

I created filters to handle moving messages on my IMAP server so that CRM114 can learn from them. I have two folders "Train as Spam" and "Train as Nonspam" that a cronjob on the server processes every minute or so.

I tried making a filter with no match conditions and one with match condition of size greater than or equal to 0 bytes they both acted the same, both worked to move the messages to a local folder but not to an IMAP folder.

When they are set to move to an IMAP folder the processed message dissapears from my inbox briefly then reappears straight away. If I set other actions, such as Mark as spam or flag as unread, they take effect. It is only the move to the IMAP folder action that does not work.
Comment 4 Al Muckart 2007-08-04 04:34:38 UTC
I should also note, for the sake of completeness that it is only from a filter that the move action doesn't work. I can drag and drop the messages onto these folders just fine or hit "m" and type the name of the folder and the message will be moved.
Comment 5 Al Muckart 2007-08-04 09:54:31 UTC
Created attachment 21326 [details]
wireshark dump of various IMAP operations in case that's useful.

This wireshark dump shows three operations
(attempting to) move a message with the filter
move a message with drag-and-drop
move a message by typing "m" and then the folder name
Comment 6 Stefán Freyr Stefánsson 2007-11-02 00:05:02 UTC
I can confirm this bug on Kubuntu feisty (7.04) using KDE 3.5.8 and KMail 1.9.7.

Using a filter to move a message to an IMAP folder does not work while modifying that same filter to move to a local folder works perfectly.

The message disappears for a short while but then pops back into the message list.
Comment 7 Thomas McGuire 2008-03-10 13:03:05 UTC
*** Bug 158764 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Burgmer 2008-10-21 10:22:07 UTC
Still reproducible in 1.10.1 with KDE 4.2 on Debian experimental packages.

This bug is more than a year old. A good work around for the beginning would be to disallow imap folders as targets until it's fixed.
Comment 9 Vitalie Lazu 2008-12-11 10:18:12 UTC
1.10.3 - still have this bug.

I had a filter that move messages to one subfolder based on TO: destination.
Sometimes kmail duplicates messages in inbox, but it copies message to destination imap folder, but does not delete from inbox.

Another feature will be useful to allow to mark moved messages "as read"
Comment 10 Björn Ruberg 2010-01-02 00:27:25 UTC
I believe comment #9 is about another problem that is fixed in KDE 4.3.
I cannot reproduce the original bug report in KDE 4.3 anymore. Works perfectly. Closing as works for me. Please report if you still have this issue.