[imapfilter-devel] move() loses email when target dir does not exist
Lefteris Chatzibarbas
lefcha at hellug.gr
Wed Apr 7 01:16:04 EEST 2004
On Thu, May 06, 2004 at 07:19:35AM +1000, Gautam Gopalakrishnan wrote:
> Hey,
>
> I hope I am not missing anything obvious, but I am losing email when the
> target folder does not exist. The imapfilter_config page says nothing
> about creating mailboxes. Won't move() create the target mailboxes if
> needed? I'm attaching the log and config.lua.
The target mailbox should be created in the case it does not exist.
This is a bug. Apply the attached patch.
-------------- next part --------------
diff -ruN imapfilter-1.0-rc1.orig/response.c imapfilter-1.0-rc1/response.c
--- imapfilter-1.0-rc1.orig/response.c Mon May 3 15:46:16 2004
+++ imapfilter-1.0-rc1/response.c Thu May 6 01:09:22 2004
@@ -134,7 +134,7 @@
return RESPONSE_CONTINUE;
} while ((r = tagged_response(ssn, tag)) == RESPONSE_NONE);
- if (r == RESPONSE_NONE && check_trycreate())
+ if (r == RESPONSE_NO && check_trycreate())
return RESPONSE_TRYCREATE;
return r;
More information about the Imapfilter-devel
mailing list