[dovecot-cvs] dovecot/src/pop3 commands.c,1.53,1.54
cras at dovecot.org
cras at dovecot.org
Sat Jul 1 23:26:18 EEST 2006
Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv26288/pop3
Modified Files:
commands.c
Log Message:
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.
Index: commands.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/commands.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- commands.c 6 Mar 2006 20:34:42 -0000 1.53
+++ commands.c 1 Jul 2006 20:26:15 -0000 1.54
@@ -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;
More information about the dovecot-cvs
mailing list