[imp] Problem purging mailbox with "uw-imap mix" format
Agustín Quintana Alfonso
agustin at iuma.ulpgc.es
Fri Nov 11 13:41:24 UTC 2011
English is not my native language; please excuse typing errors.
We have this configuration:
* Production environment
Webmail server
--------------
OS: Fedora Core release 3
Webserver: Apache 2.0.53
PHP: 4.3.11
Horde (horde): 3.1.3
Mail (imp): 4.1.3
IMAP server
-----------
IMAP server: UW-IMAP 2007e.404
Default mail folder format: mbx
The server supports the following IMAP capabilities:
IMAP4REV1 I18NLEVEL=1 LITERAL+ IDLE UIDPLUS NAMESPACE CHILDREN
MAILBOX-REFERRALS BINARY UNSELECT ESEARCH WITHIN SCAN SORT
THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND SASL-IR
LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN
* Test environment
Webmail server
--------------
OS: Ubuntu 10.04.3 LTS
Webserver: Apache 2.2.14
PHP: 5.3.2
Horde (horde): 4.0.10
Mail (imp): 5.0.14
Imapproxy: 1.2.6
In order to improve performance, we convert some mailboxes to uw-imap
"mix" format.
The problem in test environment (traditional and dynamic mode): if we
DISABLE "When deleting messages, move them to your Trash folder
instead of marking them as deleted?" and we mark some messages for
deletion, when we purge the mailbox ALL messages are deleted. This
doesn't happen with mbx format.
No problem with other email clients: Thunderbird, Outlook,...
No problem with the production environment.
Log example with mbx format in test environment (read mailbox, mark
message for deletion, purge mailbox):
================================================================================
>>> Timestamp: Fri, 11 Nov 2011 09:23:27 +0000
S: * OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ LOGIN-REFERRALS
imapserver IMAP4rev1 2007e.404 at Wed, 9 Nov 2011 09:58:11 +0000 (WET)
C: [LOGIN Command - username: agustin]
S: 1 OK User logged in
C: 2 SELECT entraba_mbx
S: * 3 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1320933381] UID validity status
S: * OK [UIDNEXT 99] Predicted next UID
S: * FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
S: * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)]
Permanent flags
S: 2 OK [READ-WRITE] SELECT completed
C: 3 UID SEARCH RETURN (ALL COUNT) ALL
S: * ESEARCH (TAG "3") UID ALL 96:98 COUNT 3
S: 3 OK UID SEARCH completed
C: 4 UID FETCH 98,97,96 (ENVELOPE FLAGS RFC822.SIZE
BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)])
S: * 1 FETCH (UID 96 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE
1358432 BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: * 2 FETCH (UID 97 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE 1638
BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: * 3 FETCH (UID 98 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE 1595
BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: 4 OK UID FETCH completed
C: 5 SEARCH RETURN (COUNT) UNSEEN
S: * ESEARCH (TAG "5") COUNT 0
S: 5 OK SEARCH completed
C: 6 STATUS INBOX (RECENT)
S: * STATUS INBOX (RECENT 0)
S: 6 OK STATUS completed
C: 7 LOGOUT
S: * BYE LOGOUT received
S: 7 OK Completed
>>> Timestamp: Fri, 11 Nov 2011 09:24:45 +0000
S: * OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ LOGIN-REFERRALS
imapserver IMAP4rev1 2007e.404 at Wed, 9 Nov 2011 09:58:11 +0000 (WET)
C: [LOGIN Command - username: agustin]
S: 1 OK User logged in
C: 2 SELECT entraba_mbx
S: * 3 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1320933381] UID validity status
S: * OK [UIDNEXT 99] Predicted next UID
S: * FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
S: * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)]
Permanent flags
S: 2 OK [READ-WRITE] SELECT completed
C: 3 UID STORE 97 +FLAGS \deleted
S: * 2 FETCH (FLAGS (\Seen \Deleted) UID 97)
S: 3 OK UID STORE completed
C: 4 UID SEARCH RETURN (ALL COUNT) ALL
S: * ESEARCH (TAG "4") UID ALL 96:98 COUNT 3
S: 4 OK UID SEARCH completed
C: 5 UID FETCH 98,97,96 (ENVELOPE FLAGS RFC822.SIZE
BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)])
S: * 1 FETCH (UID 96 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE
1358432 BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: * 2 FETCH (UID 97 ENVELOPE ("...") FLAGS (\Seen \Deleted)
RFC822.SIZE 1638 BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)]
{2}
S:
S: )
S: * 3 FETCH (UID 98 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE 1595
BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: 5 OK UID FETCH completed
C: 6 SEARCH RETURN (COUNT) UNSEEN
S: * ESEARCH (TAG "6") COUNT 0
S: 6 OK SEARCH completed
C: 7 STATUS INBOX (RECENT)
S: * STATUS INBOX (RECENT 0)
S: 7 OK STATUS completed
C: 8 LOGOUT
S: * BYE LOGOUT received
S: 8 OK Completed
>>> Timestamp: Fri, 11 Nov 2011 09:25:29 +0000
S: * OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ LOGIN-REFERRALS
imapserver IMAP4rev1 2007e.404 at Wed, 9 Nov 2011 09:58:11 +0000 (WET)
C: [LOGIN Command - username: agustin]
S: 1 OK User logged in
C: 2 SELECT entraba_mbx
S: * 3 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1320933381] UID validity status
S: * OK [UIDNEXT 99] Predicted next UID
S: * FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
S: * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)]
Permanent flags
S: 2 OK [READ-WRITE] SELECT completed
C: 3 UID EXPUNGE 1:*
S: * 2 EXPUNGE
S: * 2 EXISTS
S: * 0 RECENT
S: 3 OK Expunged 1 messages
C: 4 UID SEARCH RETURN (ALL COUNT) ALL
S: * ESEARCH (TAG "4") UID ALL 96:98 COUNT 2
S: 4 OK UID SEARCH completed
C: 5 UID FETCH 98,97,96 (ENVELOPE FLAGS RFC822.SIZE
BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)])
S: * 1 FETCH (UID 96 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE
1358432 BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: * 2 FETCH (UID 98 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE 1595
BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: 5 OK UID FETCH completed
C: 6 SEARCH RETURN (COUNT) UNSEEN
S: * ESEARCH (TAG "6") COUNT 0
S: 6 OK SEARCH completed
C: 7 STATUS INBOX (RECENT)
S: * STATUS INBOX (RECENT 0)
S: 7 OK STATUS completed
C: 8 LOGOUT
S: * BYE LOGOUT received
S: 8 OK Completed
================================================================================
Log example with mix format in test environment (read mailbox, mark
message for deletion, purge mailbox):
================================================================================
>>> Timestamp: Fri, 11 Nov 2011 09:27:15 +0000
S: * OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ LOGIN-REFERRALS
imapserver IMAP4rev1 2007e.404 at Wed, 9 Nov 2011 09:58:11 +0000 (WET)
C: [LOGIN Command - username: agustin]
S: 1 OK User logged in
C: 2 SELECT entrada_mix
S: * 3 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1320933381] UID validity status
S: * OK [UIDNEXT 102] Predicted next UID
S: * FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
S: * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)]
Permanent flags
S: 2 OK [READ-WRITE] SELECT completed
C: 3 UID SEARCH RETURN (ALL COUNT) ALL
S: * ESEARCH (TAG "3") UID ALL 99:101 COUNT 3
S: 3 OK UID SEARCH completed
C: 4 UID FETCH 101,100,99 (ENVELOPE FLAGS RFC822.SIZE
BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)])
S: * 1 FETCH (UID 99 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE
1358432 BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: * 2 FETCH (UID 100 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE 1638
BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: * 3 FETCH (UID 101 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE 1595
BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: 4 OK UID FETCH completed
C: 5 SEARCH RETURN (COUNT) UNSEEN
S: * ESEARCH (TAG "5") COUNT 0
S: 5 OK SEARCH completed
C: 6 STATUS INBOX (RECENT)
S: * STATUS INBOX (RECENT 0)
S: 6 OK STATUS completed
C: 7 LOGOUT
S: * BYE LOGOUT received
S: 7 OK Completed
>>> Timestamp: Fri, 11 Nov 2011 09:27:54 +0000
S: * OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ LOGIN-REFERRALS
imapserver IMAP4rev1 2007e.404 at Wed, 9 Nov 2011 09:58:11 +0000 (WET)
C: [LOGIN Command - username: agustin]
S: 1 OK User logged in
C: 2 SELECT entrada_mix
S: * 3 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1320933381] UID validity status
S: * OK [UIDNEXT 102] Predicted next UID
S: * FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
S: * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)]
Permanent flags
S: 2 OK [READ-WRITE] SELECT completed
C: 3 UID STORE 100 +FLAGS \deleted
S: * 2 FETCH (FLAGS (\Seen \Deleted) UID 100)
S: 3 OK UID STORE completed
C: 4 UID SEARCH RETURN (ALL COUNT) ALL
S: * ESEARCH (TAG "4") UID ALL 99:101 COUNT 3
S: 4 OK UID SEARCH completed
C: 5 UID FETCH 101,100,99 (ENVELOPE FLAGS RFC822.SIZE
BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)])
S: * 1 FETCH (UID 99 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE
1358432 BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: * 2 FETCH (UID 100 ENVELOPE ("...") FLAGS (\Seen \Deleted)
RFC822.SIZE 1638 BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)]
{2}
S:
S: )
S: * 3 FETCH (UID 101 ENVELOPE ("...") FLAGS (\Seen) RFC822.SIZE 1595
BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)] {2}
S:
S: )
S: 5 OK UID FETCH completed
C: 6 SEARCH RETURN (COUNT) UNSEEN
S: * ESEARCH (TAG "6") COUNT 0
S: 6 OK SEARCH completed
C: 7 STATUS INBOX (RECENT)
S: * STATUS INBOX (RECENT 0)
S: 7 OK STATUS completed
C: 8 LOGOUT
S: * BYE LOGOUT received
S: 8 OK Completed
>>> Timestamp: Fri, 11 Nov 2011 09:29:18 +0000
S: * OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ LOGIN-REFERRALS
imapserver IMAP4rev1 2007e.404 at Wed, 9 Nov 2011 09:58:11 +0000 (WET)
C: [LOGIN Command - username: agustin]
S: 1 OK User logged in
C: 2 SELECT entrada_mix
S: * 3 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1320933381] UID validity status
S: * OK [UIDNEXT 102] Predicted next UID
S: * FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
S: * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)]
Permanent flags
S: 2 OK [READ-WRITE] SELECT completed
C: 3 UID EXPUNGE 1:*
S: * 1 EXPUNGE
S: * 1 EXPUNGE
S: * 1 EXPUNGE
S: * 0 EXISTS
S: * 0 RECENT
S: 3 OK Expunged 3 messages
C: 4 STATUS INBOX (RECENT)
S: * STATUS INBOX (RECENT 0)
S: 4 OK STATUS completed
C: 5 LOGOUT
S: * BYE LOGOUT received
S: 5 OK Completed
================================================================================
Thanks in advance
--------------
Agustín Quintana Alfonso E-mail: agustin at iuma.ulpgc.es
Univ. de Las Palmas de G.C.
Instituto Universitario de Microelectronica Aplicada
Campus Universitario de Tafira Tel.: +34 928 451229
35017 Las Palmas de Gran Canaria Fax: +34 928 451083
Canary Islands. SPAIN
More information about the imp
mailing list