6.0.0-alpha12
6/8/25

[#5054] IMAP backend filter rules can't modify/delete mails
Summary IMAP backend filter rules can't modify/delete mails
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester kent (at) cpttm (dot) org (dot) mo
Created 03/02/2007 (6673 days ago)
Due
Updated 03/02/2007 (6673 days ago)
Assigned 03/02/2007 (6673 days ago)
Resolved 03/02/2007 (6673 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/02/2007 08:29:47 PM Michael Slusarz Comment #4 Reply to this comment
03/02/2007 08:26:42 PM Michael Slusarz Comment #3
Version ⇒ HEAD
Queue ⇒ IMP
State ⇒ Resolved
Reply to this comment
This is an IMP issue and has been fixed in IMP 4.1.4.  See:

http://lists.horde.org/archives/cvs/Week-of-Mon-20070226/065680.html
03/02/2007 11:02:10 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Please try a newer version first.
03/02/2007 01:28:25 AM kent (at) cpttm (dot) org (dot) mo Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ IMAP backend filter rules can't modify/delete mails
Queue ⇒ Ingo
State ⇒ Unconfirmed
Reply to this comment
I've setup a filter rule (IMAP backend) to mark as seen (or delete) 
mails containing the word "[SPAM]" in their subjects, but it is not 
working. The rule is activated (as I can see the notes saying some 
mails have been acted on) but the mails are still in the inbox 
unchanged.



After some investigation I found that reason is that it is using the 
EXAMINE imap command to open the inbox instead of SELECT. As a result, 
the inbox will be marked as read-only. The protocol log is shown 
below. I am using ingo1 (1.0.1-1sarge1) on Debian.



# <1172543865<00000008 EXAMINE INBOX

# >1172543865>* FLAGS (\Answered \Flagged \Draft \Deleted \Seen Junk NonJunk)

# * OK [PERMANENTFLAGS ()]

# * 2 EXISTS

# * 0 RECENT

# * OK [UNSEEN 2]

# * OK [UIDVALIDITY 1149562632]

# * OK [UIDNEXT 50118]

# 00000008 OK [READ-ONLY] Completed

# <1172543865<00000009 UID SEARCH UNDELETED SUBJECT [SPAM]

# >1172543865>* SEARCH 50116 50117

# 00000009 OK Completed (2 msgs in 0.000 secs)

# <1172543865<0000000a UID STORE 50116,50117 +Flags (\Seen)

# >1172543865>0000000a NO Permission denied

# <1172543865<0000000b STATUS INBOX (MESSAGES RECENT UNSEEN UIDNEXT)

# >1172543865>* STATUS INBOX (MESSAGES 2 RECENT 0 UIDNEXT 50118 UNSEEN 1)

# 0000000b OK Completed

# <1172543865<0000000c LOGOUT

# >1172543865>* BYE LOGOUT received

# 0000000c OK Completed

Saved Queries