[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c,1.38,1.39

cras at procontrol.fi cras at procontrol.fi
Sun Apr 13 22:02:16 EEST 2003


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

Modified Files:
	mbox-save.c 
Log Message:
More optimized mbox rewriting. It now tries to shrink/extend the filler in
x-keywords header.



Index: mbox-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- mbox-save.c	30 Mar 2003 12:48:37 -0000	1.38
+++ mbox-save.c	13 Apr 2003 18:02:14 -0000	1.39
@@ -15,8 +15,6 @@
 #include <sys/stat.h>
 #include <netdb.h>
 
-#define HEADER_EXTRA_SPACE 100
-
 struct mail_save_context {
 	struct index_mailbox *ibox;
 	int transaction;
@@ -196,7 +194,7 @@
 		   value needs, then write that amount of spaces. */
 		space = strlen(get_custom_flags(ctx->flags));
 		space += sizeof("X-Keywords: ");
-		space += HEADER_EXTRA_SPACE + MAX_INT_STRLEN + 1;
+		space += MBOX_HEADER_EXTRA_SPACE + MAX_INT_STRLEN + 1;
 
 		/* @UNSAFE */
 		buf = t_malloc(space);




More information about the dovecot-cvs mailing list