[dovecot-cvs] dovecot/src/imap cmd-status.c,1.26,1.27
tss at dovecot.org
tss at dovecot.org
Wed Dec 20 20:13:09 UTC 2006
- Previous message: [dovecot-cvs] dovecot/src/imap cmd-status.c,1.26,1.26.2.1
- Next message: [dovecot-cvs] dovecot/src/imap client.c, 1.73, 1.74 client.h, 1.39, 1.40 cmd-uid.c, 1.8, 1.9 commands.c, 1.19, 1.20 commands.h, 1.21, 1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv32330
Modified Files:
cmd-status.c
Log Message:
If STATUS command is done for a selected mailbox, don't sync it. This could
have caused lost EXPUNGEs among other lost replies..
Index: cmd-status.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-status.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- cmd-status.c 14 Jan 2006 18:47:21 -0000 1.26
+++ cmd-status.c 20 Dec 2006 20:13:07 -0000 1.27
@@ -50,7 +50,7 @@
struct mailbox_status *status)
{
struct mailbox *box;
- bool failed;
+ bool failed = FALSE;
if (client->mailbox != NULL &&
mailbox_equals(client->mailbox, storage, mailbox)) {
@@ -63,11 +63,12 @@
MAILBOX_OPEN_KEEP_RECENT);
if (box == NULL)
return FALSE;
+
+ if (imap_sync_nonselected(box, 0) < 0)
+ failed = TRUE;
}
- if (imap_sync_nonselected(box, 0) < 0)
- failed = TRUE;
- else
+ if (!failed)
failed = mailbox_get_status(box, items, status) < 0;
if (box != client->mailbox)
- Previous message: [dovecot-cvs] dovecot/src/imap cmd-status.c,1.26,1.26.2.1
- Next message: [dovecot-cvs] dovecot/src/imap client.c, 1.73, 1.74 client.h, 1.39, 1.40 cmd-uid.c, 1.8, 1.9 commands.c, 1.19, 1.20 commands.h, 1.21, 1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list