6.0.0-beta1
7/5/25

[#11627] Purge deleted does not work
Summary Purge deleted does not work
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester leena.heino (at) uta (dot) fi
Created 11/02/2012 (4628 days ago)
Due
Updated 11/02/2012 (4628 days ago)
Assigned
Resolved 11/02/2012 (4628 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/02/2012 07:19:43 PM Michael Slusarz Comment #5
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Yes - we check for SEARCHRES everywhere else it is needed, but for 
some reason this check failed to make it into search().  Fixed.
11/02/2012 07:19:20 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 49ee7300170614afb53ae59f877390ab09cacc6f
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Fri Nov 2 13:19:00 2012 -0600

     [mms] Check for SEARCHRES availability in search() (Bug #11627).

  .../Imap_Client/lib/Horde/Imap/Client/Base.php     |    6 ++++++
  framework/Imap_Client/package.xml                  |    2 ++
  2 files changed, 8 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/49ee7300170614afb53ae59f877390ab09cacc6f
11/02/2012 05:28:45 PM leena (dot) heino (at) uta (dot) fi Comment #3 Reply to this comment
The "Purge deleted" works ok in basic mode, but not in "Dynamic" or 
"Automatic" mode.

Tested with Chrome 22, Firefox 16, IE 9

[Show Quoted Text - 32 lines]
11/02/2012 04:10:58 PM leena (dot) heino (at) uta (dot) fi Comment #2 Reply to this comment
This bug could be caused by the IMP 6.0 use of RFC 5182 and SEARCHRES 
extension. Unfortunately it seems that IMP 6.0 does not check it the 
SEARCHRES extension is enabled or available in the server's CAPABILITY 
reply.

[Show Quoted Text - 26 lines]
11/02/2012 03:51:51 PM leena (dot) heino (at) uta (dot) fi Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Purge deleted does not work
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Purge deleted does not work. Server never receives Expunge command.

Tried to do following:
1. Select "Junk E-mal" folder
2. Select "Purge Deleted"

This is from Cyrus IMAPD trace log:
<1351871251<2 SELECT "Junk E-mail" (QRESYNC (1344428776 2 1:5))
1351871251>* 5 EXISTS
* 0 RECENT
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk \*)] Ok
* OK [UIDVALIDITY 1344428776] Ok
* OK [UIDNEXT 6] Ok
* OK [HIGHESTMODSEQ 2] Ok
* OK [URLMECH INTERNAL] Ok
2 OK [READ-WRITE] Completed
<1351871251<3 UID SEARCH RETURN (ALL SAVE) UID 1:*
1351871251>3 BAD Invalid Search return option save
<1351871251<4 STATUS "INBOX" (RECENT)
1351871251>* STATUS INBOX (RECENT 0)
4 OK Completed
<1351871251<C64 UNSELECT
1351871251>C64 OK Completed

Saved Queries