From aebf3eee8f417ef0e7bb808f0f8ec9022bca79c6 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Fri, 24 Jul 2009 12:36:17 +0200
Subject: [PATCH] Fallback to INBOX when storing into a namespace prefix used
 wrong storage.

---
 src/lib-sieve/sieve-actions.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib-sieve/sieve-actions.c b/src/lib-sieve/sieve-actions.c
index 8e71d4f68..45d51ae59 100644
--- a/src/lib-sieve/sieve-actions.c
+++ b/src/lib-sieve/sieve-actions.c
@@ -220,6 +220,8 @@ static struct mailbox *act_store_mailbox_open
 			*storage = NULL;
 			return NULL;
 		}
+
+		*storage = (*ns_r)->storage;
 	}
 
 	/* First attempt at opening the box */
-- 
GitLab