[dovecot-cvs] dovecot/src/imap commands-util.c,1.23,1.24
cras at procontrol.fi
cras at procontrol.fi
Tue Apr 22 22:38:00 EEST 2003
Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv9196
Modified Files:
commands-util.c
Log Message:
Give BAD instead of NO when trying to use selected state command in
non-selected state.
Index: commands-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/commands-util.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- commands-util.c 20 Feb 2003 00:46:17 -0000 1.23
+++ commands-util.c 22 Apr 2003 18:37:58 -0000 1.24
@@ -86,21 +86,25 @@
if (client->mailbox != NULL)
return TRUE;
else {
- client_send_tagline(client, "NO No mailbox selected.");
+ client_send_tagline(client, "BAD No mailbox selected.");
return FALSE;
}
}
void client_sync_full(struct client *client)
{
- if (client->mailbox != NULL)
- (void)client->mailbox->sync(client->mailbox, TRUE);
+ if (client->mailbox != NULL) {
+ if (!client->mailbox->sync(client->mailbox, TRUE))
+ client_send_untagged_storage_error(client);
+ }
}
void client_sync_without_expunges(struct client *client)
{
- if (client->mailbox != NULL)
- (void)client->mailbox->sync(client->mailbox, FALSE);
+ if (client->mailbox != NULL) {
+ if (!client->mailbox->sync(client->mailbox, FALSE))
+ client_send_untagged_storage_error(client);
+ }
}
void client_send_storage_error(struct client *client)
More information about the dovecot-cvs
mailing list