[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.53, 1.54

cras at procontrol.fi cras at procontrol.fi
Fri Jul 2 14:50:48 EEST 2004


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

Modified Files:
	mbox-save.c 
Log Message:
saving messages to empty mbox was buggy



Index: mbox-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- mbox-save.c	22 Jun 2004 07:36:33 -0000	1.53
+++ mbox-save.c	2 Jul 2004 11:50:46 -0000	1.54
@@ -317,7 +317,8 @@
 		mail_index_update_flags(ctx->trans, seq, MODIFY_REPLACE,
 					save_flags, keywords);
 
-		offset = ctx->output->offset - 1;
+		offset = ctx->output->offset == 0 ? 0 :
+			ctx->output->offset - 1;
 		mail_index_update_extra_rec(ctx->trans, seq,
 					    ibox->mbox_extra_idx, &offset);
 		ctx->next_uid++;



More information about the dovecot-cvs mailing list