Mercurial > dovecot > original-hg > dovecot-1.2
diff src/pop3/commands.c @ 4470:c22b5134455a HEAD
Don't try to expunge messages if the mailbox is read-only. It'll just cause
our index files to go out of sync with the real mailbox and cause errors.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 01 Jul 2006 23:26:10 +0300 |
parents | 904c53275e83 |
children | aa9109a17db6 |
line wrap: on
line diff
--- a/src/pop3/commands.c Sat Jul 01 23:14:39 2006 +0300 +++ b/src/pop3/commands.c Sat Jul 01 23:26:10 2006 +0300 @@ -194,6 +194,11 @@ if (client->deleted_bitmask == NULL) return TRUE; + if (mailbox_is_readonly(client->mailbox)) { + /* silently ignore */ + return TRUE; + } + memset(&seqset, 0, sizeof(seqset)); memset(&search_arg, 0, sizeof(search_arg)); seqset.seq1 = 1;