# HG changeset patch # User Heiko Schlittermann (I24) # Date 1297517704 -3600 # Node ID cdbb57192764c2920d2381bcf14971fa1feba117 did some patches, not sure, if this is the proper way to put them under VC. diff -r 000000000000 -r cdbb57192764 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sat Feb 12 14:35:04 2011 +0100 @@ -0,0 +1,5 @@ +^\.hg +^\.mq +syntax: glob +status +guards diff -r 000000000000 -r cdbb57192764 doc.maildir_tag --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc.maildir_tag Sat Feb 12 14:35:04 2011 +0100 @@ -0,0 +1,20 @@ +# HG changeset patch +# Parent edb5de053fb4b1e81d7ae2eeb4b5afd977fb1978 +diff -r edb5de053fb4 -r ceca9fed510e doc/spec.txt +--- a/doc/spec.txt Fri Feb 11 21:12:38 2011 +0100 ++++ b/doc/spec.txt Fri Feb 11 21:35:49 2011 +0100 +@@ -18794,6 +18794,14 @@ + empty, it is ignored. If it starts with an alphanumeric character, a leading + colon is inserted. + ++Please note, that normally you want to use ++ ++ maildir_tag = ,S=${message_size} ++ ++The default prefix choosen (a colon) may be misinterpreted by other maildir ++clients. Please check their documentation about the expected format of ++the filename; ++ + 26.7Â Using a maildirsize file + + If maildir_use_size_file is true, Exim implements the maildir++ rules for diff -r 000000000000 -r cdbb57192764 series --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/series Sat Feb 12 14:35:04 2011 +0100 @@ -0,0 +1,2 @@ +doc.maildir_tag +src.maildir_use_size_file diff -r 000000000000 -r cdbb57192764 src.maildir_use_size_file --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src.maildir_use_size_file Sat Feb 12 14:35:04 2011 +0100 @@ -0,0 +1,73 @@ +# HG changeset patch +# Parent d98fade4115f99c28d62e112e3f2e9e068a12642 + +diff -r d98fade4115f doc/spec.txt +--- a/doc/spec.txt Fri Feb 11 23:27:39 2011 +0100 ++++ b/doc/spec.txt Sat Feb 12 14:24:32 2011 +0100 +@@ -18180,10 +18180,11 @@ + section 26.5 below. + + +------------------------------------------------------------------+ +-|maildir_use_size_file|Use: appendfile|Type: boolean|Default: false| ++|maildir_use_size_file|Use: appendfile|Type: boolean*|Default: false| + +------------------------------------------------------------------+ + +-Setting this option true enables support for maildirsize files. Exim creates a ++The result of string expansion for this option must be a valid boolean value. ++If it is true, it enables support for maildirsize files. Exim creates a + maildirsize file in a maildir if one does not exist, taking the quota from the + quota option of the transport. If quota is unset, the value is zero. See + maildir_quota_directory_regex above and section 26.5 below for further details. +diff -r d98fade4115f src/transports/appendfile.c +--- a/src/transports/appendfile.c Fri Feb 11 23:27:39 2011 +0100 ++++ b/src/transports/appendfile.c Sat Feb 12 14:24:32 2011 +0100 +@@ -38,6 +38,10 @@ + opt_public flag. */ + + optionlist appendfile_transport_options[] = { ++#ifdef SUPPORT_MAILDIR ++ { "*expand_maildir_use_size_file", opt_stringptr, ++ (void *)offsetof(appendfile_transport_options_block, expand_maildir_use_size_file) }, ++#endif + { "*set_use_fcntl_lock",opt_bool | opt_hidden, + (void *)offsetof(appendfile_transport_options_block, set_use_fcntl) }, + { "*set_use_flock_lock",opt_bool | opt_hidden, +@@ -105,7 +109,7 @@ + (void *)offsetof(appendfile_transport_options_block, maildir_retries) }, + { "maildir_tag", opt_stringptr, + (void *)offsetof(appendfile_transport_options_block, maildir_tag) }, +- { "maildir_use_size_file", opt_bool, ++ { "maildir_use_size_file", opt_expand_bool, + (void *)offsetof(appendfile_transport_options_block, maildir_use_size_file ) } , + { "maildirfolder_create_regex", opt_stringptr, + (void *)offsetof(appendfile_transport_options_block, maildirfolder_create_regex ) }, +@@ -184,6 +188,7 @@ + NULL, /* quota_warn_threshold */ + NULL, /* mailbox_size_string */ + NULL, /* mailbox_filecount_string */ ++ NULL, /* expand_maildir_use_size_file */ + US"^(?:cur|new|\\..*)$", /* maildir_dir_regex */ + NULL, /* maildir_tag */ + NULL, /* maildirfolder_create_regex */ +@@ -272,6 +277,10 @@ + uid = uid; + gid = gid; + ++if (ob->expand_maildir_use_size_file) ++ ob->maildir_use_size_file = expand_check_condition(ob->expand_maildir_use_size_file, ++ US"`maildir_use_size_file` in transport", tblock->name); ++ + /* Loop for quota, quota_filecount, quota_warn_threshold, mailbox_size, + mailbox_filecount */ + +diff -r d98fade4115f src/transports/appendfile.h +--- a/src/transports/appendfile.h Fri Feb 11 23:27:39 2011 +0100 ++++ b/src/transports/appendfile.h Sat Feb 12 14:24:32 2011 +0100 +@@ -23,6 +23,7 @@ + uschar *quota_warn_threshold; + uschar *mailbox_size_string; + uschar *mailbox_filecount_string; ++ uschar *expand_maildir_use_size_file; + uschar *maildir_dir_regex; + uschar *maildir_tag; + uschar *maildirfolder_create_regex;