On la, 2010-05-29 at 11:47 -0400, Andy Dills wrote:

> That's the order they appeared in my logfile. I'm assuming they were all 
> sent to deliver at the same time, they all thought they needed to make the 
> directory, the one with msgid 
> 20100529070110.17a781b5...@mail-out02.xecu.net was able to make the 
> directory and get delivered, whereas the other two freaked out because 
> they couldn't make the directory they thought needed to be made, and just 
> sent the mail to the inbox.

Yeah. Fixed for v2.0 and attached a fix to Pigeonhole.

diff -r b877a1db00a5 src/lib-sieve/sieve-actions.c
--- a/src/lib-sieve/sieve-actions.c	Sun May 30 09:39:19 2010 +0200
+++ b/src/lib-sieve/sieve-actions.c	Mon May 31 16:47:17 2010 +0100
@@ -402,8 +402,10 @@
 	/* Try creating it. */
 	if ( mailbox_create(box, NULL, FALSE) < 0 ) {
 		(void)mail_storage_get_last_error(*storage, &error);
-		mailbox_free(&box);
-		return NULL;
+		if (error != MAIL_ERROR_EXISTS) {
+			mailbox_free(&box);
+			return NULL;
+		}
 	}
 
 	/* Subscribe to it if required */

Reply via email to