[dovecot-cvs] dovecot/src/pop3 client.c,1.33,1.34

cras at dovecot.org cras at dovecot.org
Wed Sep 1 17:28:27 EEST 2004


Update of /home/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv31284

Modified Files:
	client.c 
Log Message:
Log error message if we can't open INBOX.



Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- client.c	29 Aug 2004 07:52:03 -0000	1.33
+++ client.c	1 Sep 2004 14:28:25 -0000	1.34
@@ -128,6 +128,7 @@
 {
 	struct client *client;
         enum mailbox_open_flags flags;
+	int syntax_error;
 
 	/* always use nonblocking I/O */
 	net_set_nonblock(hin, TRUE);
@@ -151,6 +152,8 @@
 		flags |= MAILBOX_OPEN_KEEP_RECENT;
 	client->mailbox = mailbox_open(storage, "INBOX", flags);
 	if (client->mailbox == NULL) {
+		i_error("Couldn't open INBOX: %s",
+			mail_storage_get_last_error(storage, &syntax_error));
 		client_send_line(client, "-ERR No INBOX for user.");
 		client_destroy(client);
 		return NULL;



More information about the dovecot-cvs mailing list