[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.10, 1.11

cras at procontrol.fi cras at procontrol.fi
Mon May 3 22:28:50 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv17802/index/maildir

Modified Files:
	maildir-sync.c 
Log Message:
When moving mails to cur/, we must add the ":2," part to filename.



Index: maildir-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- maildir-sync.c	3 May 2004 13:50:41 -0000	1.10
+++ maildir-sync.c	3 May 2004 19:28:47 -0000	1.11
@@ -396,6 +396,8 @@
 			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;



More information about the dovecot-cvs mailing list