[dovecot-cvs] dovecot/src/lib-storage mail-storage.c,1.53,1.54

cras at dovecot.org cras at dovecot.org
Tue Jun 27 13:27:28 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv18471/lib-storage

Modified Files:
	mail-storage.c 
Log Message:
MAIL_STORAGE_FLAG_KEEP_HEADER_MD5 flag was supposed to be set if
pop3_uidl_format contained %m. Added it now to mail_storage_parse_env() so
it's used everywhere.



Index: mail-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- mail-storage.c	17 Jun 2006 13:03:27 -0000	1.53
+++ mail-storage.c	27 Jun 2006 10:27:26 -0000	1.54
@@ -3,6 +3,7 @@
 #include "lib.h"
 #include "ioloop.h"
 #include "array.h"
+#include "var-expand.h"
 #include "mail-storage-private.h"
 
 #include <stdlib.h>
@@ -76,6 +77,11 @@
 	if (getenv("MAIL_SAVE_CRLF") != NULL)
 		*flags_r |= MAIL_STORAGE_FLAG_SAVE_CRLF;
 
+	str = getenv("POP3_UIDL_FORMAT");
+	if (str != NULL && (str = strchr(str, '%')) != NULL &&
+	    str != NULL && var_get_key(str + 1) == 'm')
+		*flags_r |= MAIL_STORAGE_FLAG_KEEP_HEADER_MD5;
+
 	str = getenv("LOCK_METHOD");
 	if (str == NULL || strcmp(str, "fcntl") == 0)
 		*lock_method_r = MAIL_STORAGE_LOCK_FCNTL;



More information about the dovecot-cvs mailing list