]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
When moving mails to cur/, we must add the ":2," part to filename.
authorTimo Sirainen <tss@iki.fi>
Mon, 3 May 2004 19:28:47 +0000 (22:28 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 3 May 2004 19:28:47 +0000 (22:28 +0300)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-sync.c

index 9c81cad39feba9179bcd297638e5a3b6d0d86ff0..d96678f5cf045616571417e2c56cbaddd2191f2e 100644 (file)
@@ -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;