Displaying 3 results from an estimated 3 matches for "cmd_append_cancel".
2006 Jan 30
1
nearly there
...ild(pool=0x8047cac, box=0x8047cb4, args=0x8047ca0, error_r=0x804ebc1) [imap-search.c@416]
[6] imap_search_get_uidset_arg(pool=0x1, box=0x8047cac, uidset="\215}\004\b\235}\004\b\245}\004\b\020\220\b\b\313}\004\b\335}\004\b\357}\004\b", arg_r=0x0, error_r=0x0, 0x1) [imap-search.c@447]
[7] cmd_append_cancel(ctx=0x8047cb4, nonsync=true, presumed: 0) [cmd-append.c@158]
[8] ?() [0]
debug>
The log says Trying to allocate 0 bytes
and imap gets killed.
Does it ring any bells?
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
15, Chemin des Monges +33-5-61-50-97-01 (Fax)...
2009 Apr 02
4
Maildir files with mtime in the future
...----------------------------- 8< ----------
diff --git a/src/imap/cmd-append.c b/src/imap/cmd-append.c
index 0b22fd5..b7e42b9 100644
--- a/src/imap/cmd-append.c
+++ b/src/imap/cmd-append.c
@@ -319,6 +319,12 @@ static bool cmd_append_continue_parsing(struct client_command_context *cmd)
return cmd_append_cancel(ctx, nonsync);
}
+ if (internal_date != (time_t)-1 && internal_date > time(NULL)) {
+ /* the client specified a time in the future, set it to now. */
+ internal_date = (time_t)-1;
+ timezone_offset = 0;
+ }
+
if (ctx->msg_size == 0) {
/* no message data, abort */
client...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...-330,6 +370,11 @@
} else if (!imap_parse_datetime(internal_date_str,
&internal_date, &timezone_offset)) {
client_send_tagline(cmd, "BAD Invalid internal date.");
+
+ /* APPLE */
+ if (keywords != NULL)
+ mailbox_keywords_free(ctx->box, &keywords);
+
return cmd_append_cancel(ctx, nonsync);
}
@@ -343,6 +388,11 @@
if (ctx->msg_size == 0) {
/* no message data, abort */
client_send_tagline(cmd, "NO Can't save a zero byte message.");
+
+ /* APPLE */
+ if (keywords != NULL)
+ mailbox_keywords_free(ctx->box, &keywords);
+
return cmd_...