[dovecot-cvs] dovecot/src/imap cmd-copy.c,1.34,1.35

tss-movial at dovecot.org tss-movial at dovecot.org
Mon Mar 6 20:13:56 EET 2006


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv14923

Modified Files:
	cmd-copy.c 
Log Message:
mailbox_copy() might fail because mail was expunged. Treat that case differently.



Index: cmd-copy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-copy.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- cmd-copy.c	22 Feb 2006 14:52:11 -0000	1.34
+++ cmd-copy.c	6 Mar 2006 18:13:54 -0000	1.35
@@ -33,7 +33,7 @@
 			mailbox_keywords_create(t, keywords_list);
 		if (mailbox_copy(t, mail, mail_get_flags(mail),
 				 keywords, NULL) < 0)
-			ret = -1;
+			ret = mail->expunged ? 0 : -1;
 		mailbox_keywords_free(t, &keywords);
 	}
 	mail_free(&mail);



More information about the dovecot-cvs mailing list