[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c,1.27,1.28

cras at procontrol.fi cras at procontrol.fi
Thu Aug 7 00:15:36 EEST 2003


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

Modified Files:
	maildir-copy.c 
Log Message:
Index cache file rewrite. It's not finished yet and mbox support is
completely broken. But it's getting difficult to maintain outside cvs :)



Index: maildir-copy.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-copy.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- maildir-copy.c	26 Jul 2003 16:55:11 -0000	1.27
+++ maildir-copy.c	6 Aug 2003 20:15:33 -0000	1.28
@@ -31,12 +31,13 @@
 				 const char **fname, const char *new_path)
 {
 	const char *path;
+	int new_dir;
 
-	*fname = maildir_get_location(index, rec);
+	*fname = maildir_get_location(index, rec, &new_dir);
 	if (*fname == NULL)
 		return -1;
 
-	if ((rec->index_flags & INDEX_MAIL_FLAG_MAILDIR_NEW) != 0) {
+	if (new_dir) {
 		/* probably in new/ dir */
 		path = t_strconcat(index->mailbox_path, "/new/", *fname, NULL);
 		if (link(path, new_path) == 0)



More information about the dovecot-cvs mailing list