[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


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");
 }



More information about the dovecot-cvs mailing list