Displaying 1 result from an estimated 1 matches for "0b22fd5".
2009 Apr 02
4
Maildir files with mtime in the future
...it would be nice if Dovecot would (optionally?)
use the current time if the client specifies a time in the future. For
example, we use the following patch:
---------- 8< ---------------------------------------- 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)) {
+...