[dovecot-cvs] dovecot/src/lib-storage mail-storage.c, 1.50.2.1, 1.50.2.2

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


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

Modified Files:
      Tag: branch_1_0
	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.50.2.1
retrieving revision 1.50.2.2
diff -u -d -r1.50.2.1 -r1.50.2.2
--- mail-storage.c	17 Jun 2006 13:01:38 -0000	1.50.2.1
+++ mail-storage.c	27 Jun 2006 10:27:11 -0000	1.50.2.2
@@ -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