[dovecot-cvs] dovecot/src/pop3 client.c,1.57,1.58
cras at dovecot.org
cras at dovecot.org
Fri Jul 29 11:43:07 EEST 2005
- Previous message: [dovecot-cvs] dovecot/src/imap cmd-fetch.c, 1.28,
1.29 commands-util.c, 1.45, 1.46 imap-search.c, 1.12, 1.13
- Next message: [dovecot-cvs] dovecot/src/auth auth-client-connection.c, 1.37,
1.38 auth-request-handler.c, 1.7, 1.8 auth-request-handler.h,
1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv30221/pop3
Modified Files:
client.c
Log Message:
Added separate "temporary error" flag for mail_storage_get_last_error().
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- client.c 3 Jul 2005 21:35:18 -0000 1.57
+++ client.c 29 Jul 2005 08:43:05 -0000 1.58
@@ -130,7 +130,7 @@
{
struct client *client;
enum mailbox_open_flags flags;
- int syntax_error;
+ int syntax_error, temporary_error;
/* always use nonblocking I/O */
net_set_nonblock(hin, TRUE);
@@ -155,7 +155,8 @@
client->mailbox = mailbox_open(storage, "INBOX", NULL, flags);
if (client->mailbox == NULL) {
i_error("Couldn't open INBOX: %s",
- mail_storage_get_last_error(storage, &syntax_error));
+ mail_storage_get_last_error(storage, &syntax_error,
+ &temporary_error));
client_send_line(client, "-ERR No INBOX for user.");
client_destroy(client, "No INBOX for user.");
return NULL;
@@ -299,7 +300,7 @@
void client_send_storage_error(struct client *client)
{
const char *error;
- int syntax;
+ int syntax, temporary_error;
if (mailbox_is_inconsistent(client->mailbox)) {
client_send_line(client, "-ERR Mailbox is in inconsistent "
@@ -308,7 +309,8 @@
return;
}
- error = mail_storage_get_last_error(client->storage, &syntax);
+ error = mail_storage_get_last_error(client->storage, &syntax,
+ &temporary_error);
client_send_line(client, "-ERR %s", error != NULL ? error :
"BUG: Unknown error");
}
- Previous message: [dovecot-cvs] dovecot/src/imap cmd-fetch.c, 1.28,
1.29 commands-util.c, 1.45, 1.46 imap-search.c, 1.12, 1.13
- Next message: [dovecot-cvs] dovecot/src/auth auth-client-connection.c, 1.37,
1.38 auth-request-handler.c, 1.7, 1.8 auth-request-handler.h,
1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list