English is not my native language; please excuse typing errors.

We have this configuration:

IMAP server
-----------
IMAP server: UW-IMAP 2007f.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

Webmail client
--------------
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 from mbx or
mbox to uw-imap "mix" format.

In the webmail client, if we mark some messages for deletion in
mailbox with mix format, when we purge the mailbox ALL messages are
deleted. This doesn't happen with mbx format.
No problem with other email clients: Thunderbird, Outlook,... Probably
they don't use UID EXPUNGE.

We have done some tests from a telnet session too:

- Log example with mbx folder

. SELECT entrada_mbx
* 4 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1320933381] UID validity status
* OK [UIDNEXT 135] Predicted next UID
* FLAGS (NonJunk Junk \Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (NonJunk Junk \* \Answered \Flagged \Deleted
\Draft \Seen)] Permanent flags
. OK [READ-WRITE] SELECT completed
. UID SEARCH RETURN (ALL COUNT) ALL
* ESEARCH (TAG ".") UID ALL 131:134 COUNT 4
. OK UID SEARCH completed
. UID FETCH 132 (ENVELOPE FLAGS RFC822.SIZE)
* 2 FETCH (UID 132 ENVELOPE ("Mon, 22 Dec 2008 13:44:12 +0000" "From
ScanFront220" (("agustin" NIL "agustin" "iuma.ulpgc.es")) (("agustin"
NIL "agustin" "iuma.ulpgc.es")) (("agustin" NIL "agustin"
"iuma.ulpgc.es")) ((NIL NIL "agustin" "iuma.ulpgc.es")) NIL NIL NIL
"<[email protected]>") FLAGS (\Seen)
RFC822.SIZE 1358432)
. OK UID FETCH completed
. UID STORE 132 +FLAGS \deleted
* 2 FETCH (FLAGS (\Seen \Deleted) UID 132)
. OK UID STORE completed
. UID FETCH 132 (ENVELOPE FLAGS RFC822.SIZE)
* 2 FETCH (UID 132 ENVELOPE ("Mon, 22 Dec 2008 13:44:12 +0000" "From
ScanFront220" (("agustin" NIL "agustin" "iuma.ulpgc.es")) (("agustin"
NIL "agustin" "iuma.ulpgc.es")) (("agustin" NIL "agustin"
"iuma.ulpgc.es")) ((NIL NIL "agustin" "iuma.ulpgc.es")) NIL NIL NIL
"<[email protected]>") FLAGS (\Seen \Deleted)
RFC822.SIZE 1358432)
. OK UID FETCH completed
. UID EXPUNGE 1:*
* 2 EXPUNGE
* 3 EXISTS
* 0 RECENT
. OK Expunged 1 messages
. UID SEARCH RETURN (ALL COUNT) ALL
* ESEARCH (TAG ".") UID ALL 131:134 COUNT 3
. OK UID SEARCH completed

- Log example with mix folder

. SELECT entrada_mix
* 4 EXISTS
* 4 RECENT
* OK [UIDVALIDITY 1321350352] UID validity status
* OK [UIDNEXT 29] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)]
Permanent flags
. OK [READ-WRITE] SELECT completed
. UID SEARCH RETURN (ALL COUNT) ALL
* ESEARCH (TAG ".") UID ALL 25:28 COUNT 4
. OK UID SEARCH completed
. UID FETCH 26 (ENVELOPE FLAGS RFC822.SIZE)
* 2 FETCH (UID 26 ENVELOPE ("Mon, 22 Dec 2008 13:44:12 +0000" "From
ScanFront220" (("agustin" NIL "agustin" "iuma.ulpgc.es")) (("agustin"
NIL "agustin" "iuma.ulpgc.es")) (("agustin" NIL "agustin"
"iuma.ulpgc.es")) ((NIL NIL "agustin" "iuma.ulpgc.es")) NIL NIL NIL
"<[email protected]>") FLAGS (\Recent \Seen)
RFC822.SIZE 1358432)
. OK UID FETCH completed
. UID STORE 26 +FLAGS \deleted
* 2 FETCH (FLAGS (\Recent \Seen \Deleted) UID 26)
. OK UID STORE completed
. UID FETCH 26 (ENVELOPE FLAGS RFC822.SIZE)
* 2 FETCH (UID 26 ENVELOPE ("Mon, 22 Dec 2008 13:44:12 +0000" "From
ScanFront220" (("agustin" NIL "agustin" "iuma.ulpgc.es")) (("agustin"
NIL "agustin" "iuma.ulpgc.es")) (("agustin" NIL "agustin"
"iuma.ulpgc.es")) ((NIL NIL "agustin" "iuma.ulpgc.es")) NIL NIL NIL
"<[email protected]>") FLAGS (\Recent \Seen
\Deleted) RFC822.SIZE 1358432)
. OK UID FETCH completed
. UID EXPUNGE 1:*
* 1 EXPUNGE
* 1 EXPUNGE
* 1 EXPUNGE
* 1 EXPUNGE
* 0 EXISTS
* 0 RECENT
. OK Expunged 4 messages

The problem is the IMAP command "UID EXPUNGE 1:*" with mix mailboxes.
If I set an explicit UID it works fine.

Thanks in advance.

--
Agustín Quintana Alfonso                 E-mail: [email protected]
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


_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to