[dovecot-cvs] dovecot/src/imap cmd-status.c,1.26,1.26.2.1
tss at dovecot.org
tss at dovecot.org
Wed Dec 20 20:13:06 UTC 2006
- Previous message: [dovecot-cvs] dovecot/src/imap Makefile.am, 1.37, 1.38 client.c, 1.72, 1.73 client.h, 1.38, 1.39 cmd-append.c, 1.85, 1.86 cmd-fetch.c, 1.32, 1.33 cmd-idle.c, 1.34, 1.35 cmd-list.c, 1.59, 1.60 cmd-search.c, 1.29, 1.30 cmd-sort.c, 1.21, 1.22 cmd-thread.c, 1.12, 1.13 cmd-uid.c, 1.7, 1.8 commands.c, 1.18, 1.19 commands.h, 1.20, 1.21 imap-fetch.c, 1.50, 1.51 imap-fetch.h, 1.22, 1.23 imap-sync.c, 1.21, 1.22
- Next message: [dovecot-cvs] dovecot/src/imap cmd-status.c,1.26,1.27
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv32332
Modified Files:
Tag: branch_1_0
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.26.2.1
diff -u -d -r1.26 -r1.26.2.1
--- cmd-status.c 14 Jan 2006 18:47:21 -0000 1.26
+++ cmd-status.c 20 Dec 2006 20:13:03 -0000 1.26.2.1
@@ -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 Makefile.am, 1.37, 1.38 client.c, 1.72, 1.73 client.h, 1.38, 1.39 cmd-append.c, 1.85, 1.86 cmd-fetch.c, 1.32, 1.33 cmd-idle.c, 1.34, 1.35 cmd-list.c, 1.59, 1.60 cmd-search.c, 1.29, 1.30 cmd-sort.c, 1.21, 1.22 cmd-thread.c, 1.12, 1.13 cmd-uid.c, 1.7, 1.8 commands.c, 1.18, 1.19 commands.h, 1.20, 1.21 imap-fetch.c, 1.50, 1.51 imap-fetch.h, 1.22, 1.23 imap-sync.c, 1.21, 1.22
- Next message: [dovecot-cvs] dovecot/src/imap cmd-status.c,1.26,1.27
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list