[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.94.2.4, 1.94.2.5

tss at dovecot.org tss at dovecot.org
Fri Jan 26 13:58:35 UTC 2007


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

Modified Files:
      Tag: branch_1_0
	mbox-save.c 
Log Message:
Cleanups and minor fixes



Index: mbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.94.2.4
retrieving revision 1.94.2.5
diff -u -d -r1.94.2.4 -r1.94.2.5
--- mbox-save.c	15 Oct 2006 15:42:57 -0000	1.94.2.4
+++ mbox-save.c	26 Jan 2007 13:58:33 -0000	1.94.2.5
@@ -411,7 +411,8 @@
 		/* parse and cache the mail headers as we read it */
 		if (ctx->mail == NULL)
 			ctx->mail = index_mail_alloc(_t, 0, NULL);
-		mail_set_seq(ctx->mail, ctx->seq);
+		if (mail_set_seq(ctx->mail, ctx->seq) < 0)
+			i_unreached();
 		index_mail_parse_header_init((struct index_mail *)ctx->mail,
 					     NULL);
 	}



More information about the dovecot-cvs mailing list