From ead79af955bccc360de08c150918474c1809748e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 3 May 2004 22:28:47 +0300 Subject: [PATCH] When moving mails to cur/, we must add the ":2," part to filename. --HG-- branch : HEAD --- src/lib-storage/index/maildir/maildir-sync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib-storage/index/maildir/maildir-sync.c b/src/lib-storage/index/maildir/maildir-sync.c index 9c81cad39f..d96678f5cf 100644 --- a/src/lib-storage/index/maildir/maildir-sync.c +++ b/src/lib-storage/index/maildir/maildir-sync.c @@ -396,6 +396,8 @@ static int maildir_scan_dir(struct maildir_sync_context *ctx, int new_dir) str_truncate(dest, 0); str_printfa(src, "%s/%s", ctx->new_dir, dp->d_name); str_printfa(dest, "%s/%s", ctx->cur_dir, dp->d_name); + if (strchr(dp->d_name, ':') == NULL) + str_append(dest, ":2,"); if (rename(str_c(src), str_c(dest)) == 0) { /* we moved it - it's \Recent for use */ ctx->ibox->dirty_cur_time = ioloop_time; -- 2.47.3