[dovecot-cvs] dovecot/src/pop3 commands.c,1.53,1.53.2.1
cras at dovecot.org
cras at dovecot.org
Sat Jul 1 23:26:10 EEST 2006
Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv15090/pop3
Modified Files:
Tag: branch_1_0
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.53.2.1
diff -u -d -r1.53 -r1.53.2.1
--- commands.c 6 Mar 2006 20:34:42 -0000 1.53
+++ commands.c 1 Jul 2006 20:26:08 -0000 1.53.2.1
@@ -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