Bug 131265 - filter remove "unread" state from mail when using imap
Summary: filter remove "unread" state from mail when using imap
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: 1.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-23 23:42 UTC by Luiz Angelo De Luca
Modified: 2009-12-29 02:53 UTC (History)
1 user (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 Luiz Angelo De Luca 2006-07-23 23:42:26 UTC
Version:           1.2 (using KDE 3.5.1 Level "a" , SUSE 10.1)
Compiler:          Target: x86_64-suse-linux
OS:                Linux (x86_64) release 2.6.16.13-4-default

I created a simple filter: when incoming email from X@y.com, move to IMAP(cachedimap) folder Y. It works but it always removes the unread/new mail state from the message. Imediately after the filter moves it, the message is still marked as unread but after less then a second, it becomes read. I think that the message is moved when the inbox is checked and when kmail checks the destin folder, it removes the unread state.

This is really anoying...
Comment 1 ilias 2006-09-21 11:58:22 UTC
I have the same problem.I use filters to move mail to different imap folder (from IMAP to IMAP). All the messages are marked unread. I even tried to put "move message + mark it unread" at the filter rules but it didn't work.

I have kde 3.5.2

Comment 2 A T Somers 2006-10-29 10:41:57 UTC
Could someone check if this also happens in a standalone KMail? If so, this bug belongs to the KMail product instead if to Kontact. I can't check myself, as I don't use IMAP.
Comment 3 Philip Rodrigues 2006-10-29 19:17:34 UTC
I have a bunch of IMAP filters, which mostly work fine, although I think I've seen similar problems to the one described once or twice. Can you provide any other data points? ISTR my problems occurred when one of the folders was previously empty (ie, the new message was the only one in the folder). Does the problem occur for filters of all types (filter on From, filter on Body, on ...), or just some? All destinations or just some?
Comment 4 Luiz Angelo De Luca 2006-10-30 21:21:24 UTC
It's still present in Kontact 1.2.3, KDE 3.5.5 R19.1

This happens with all kind of filters and with both IMAP methods (dis/connected). When the message is moved, it is still marked as unread. The status is cleared when kmail checks for new messages inside the destin folder. It looks like kmail checks the first folder (INBOX) and do the filtering job. At this point, all messages status are correct, even in dest folders. But when kmail checks(in the same cicle that trigged the filters) for messages in dest folder, it clears the new/unread status. Maybe this is related to the fact that my email server is quite old. 

All machines clocks are sync, all folder had mails. The filtering is ok, the problem is email check for filtered messages.

Imap server info:
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] localhost IMAP4rev1 2003.338 at Mon, 30 Oct 2006 17:08:13 -0300 (BRT)
Comment 5 Björn Ruberg 2009-12-29 02:53:28 UTC
Have a similar filter, I cannot reproduce the problem in KDE 4.2+