[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.138, 1.139

cras at dovecot.org cras at dovecot.org
Fri Mar 25 00:34:31 EET 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv10830/src/lib-storage/index/mbox

Modified Files:
	mbox-sync.c 
Log Message:
Blank line was missing at the end of the created pseudo mail.
s/dummy/pseudo/ to be more consistent.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- mbox-sync.c	14 Mar 2005 14:32:48 -0000	1.138
+++ mbox-sync.c	24 Mar 2005 22:34:28 -0000	1.139
@@ -55,7 +55,7 @@
 
 /* The text below was taken exactly as c-client wrote it to my mailbox,
    so it's probably copyrighted by University of Washington. */
-#define DUMMY_MESSAGE_BODY \
+#define PSEUDO_MESSAGE_BODY \
 "This text is part of the internal format of your mail folder, and is not\n" \
 "a real message.  It is created automatically by the mail system software.\n" \
 "If deleted, important folder data will be lost, and it will be re-created\n" \
@@ -952,7 +952,7 @@
 	return 1;
 }
 
-static int mbox_write_dummy(struct mbox_sync_context *sync_ctx)
+static int mbox_write_pseudo(struct mbox_sync_context *sync_ctx)
 {
 	string_t *str;
 	unsigned int uid_validity;
@@ -969,7 +969,8 @@
 		    "X-IMAP: %u %010u\n"
 		    "Status: RO\n"
 		    "\n"
-		    DUMMY_MESSAGE_BODY,
+		    PSEUDO_MESSAGE_BODY
+		    "\n",
                     mbox_from_create("MAILER_DAEMON", ioloop_time),
 		    message_date_create(ioloop_time),
 		    my_hostname, dec2str(ioloop_time), my_hostname,
@@ -1062,7 +1063,7 @@
 		}
 
 		if (offset == 0) {
-			if (mbox_write_dummy(sync_ctx) < 0)
+			if (mbox_write_pseudo(sync_ctx) < 0)
 				return -1;
 		}
 



More information about the dovecot-cvs mailing list