[dovecot-cvs] dovecot/src/master mail-process.c, 1.107, 1.108 master-settings.c, 1.141, 1.142 master-settings.h, 1.88, 1.89
tss at dovecot.org
tss at dovecot.org
Tue Oct 17 11:56:02 UTC 2006
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv27284/src/master
Modified Files:
mail-process.c master-settings.c master-settings.h
Log Message:
Renamed default_mail_env to mail_location. Keep the default_mail_env working
anyway for backwards compatibility.
Index: mail-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- mail-process.c 8 Oct 2006 17:27:14 -0000 1.107
+++ mail-process.c 17 Oct 2006 10:55:58 -0000 1.108
@@ -283,8 +283,8 @@
/* user given environment - may be malicious. virtual_user comes from
auth process, but don't trust that too much either. Some auth
mechanism might allow leaving extra data there. */
- if ((mail == NULL || *mail == '\0') && *set->default_mail_env != '\0')
- mail = expand_mail_env(set->default_mail_env, var_expand_table);
+ if ((mail == NULL || *mail == '\0') && *set->mail_location != '\0')
+ mail = expand_mail_env(set->mail_location, var_expand_table);
env_put(t_strconcat("MAIL=", mail, NULL));
if (set->server->namespaces != NULL) {
Index: master-settings.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- master-settings.c 22 Sep 2006 14:39:05 -0000 1.141
+++ master-settings.c 17 Oct 2006 10:55:59 -0000 1.142
@@ -109,6 +109,7 @@
DEF(SET_STR, mail_extra_groups),
DEF(SET_STR, default_mail_env),
+ DEF(SET_STR, mail_location),
DEF(SET_STR, mail_cache_fields),
DEF(SET_STR, mail_never_cache_fields),
DEF(SET_INT, mail_cache_min_mail_count),
@@ -316,6 +317,7 @@
MEMBER(mail_extra_groups) "",
MEMBER(default_mail_env) "",
+ MEMBER(mail_location) "",
MEMBER(mail_cache_fields) "flags",
MEMBER(mail_never_cache_fields) "imap.envelope",
MEMBER(mail_cache_min_mail_count) 0,
@@ -864,6 +866,10 @@
return FALSE;
}
#endif
+ if (*set->mail_location == '\0') {
+ /* keep this for backwards compatibility */
+ set->mail_location = set->default_mail_env;
+ }
return TRUE;
}
Index: master-settings.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.h,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- master-settings.h 10 Aug 2006 18:46:58 -0000 1.88
+++ master-settings.h 17 Oct 2006 10:55:59 -0000 1.89
@@ -68,6 +68,7 @@
const char *mail_extra_groups;
const char *default_mail_env;
+ const char *mail_location;
const char *mail_cache_fields;
const char *mail_never_cache_fields;
unsigned int mail_cache_min_mail_count;
More information about the dovecot-cvs
mailing list