dovecot-sieve-1.1: Use sieve_dir instead of home if it exists fo...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 20 11:16:58 EEST 2007


details:   http://hg.dovecot.org/dovecot-sieve-1.1/rev/3d36c3f1f755
changeset: 29:3d36c3f1f755
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 20 11:15:39 2007 +0300
description:
Use sieve_dir instead of home if it exists for finding personal scripts.

diffstat:

1 file changed, 4 insertions(+), 2 deletions(-)
src/sieve-cmu.c |    6 ++++--

diffs (17 lines):

diff -r 48178539087b -r 3d36c3f1f755 src/sieve-cmu.c
--- a/src/sieve-cmu.c	Fri Jul 20 11:12:45 2007 +0300
+++ b/src/sieve-cmu.c	Fri Jul 20 11:15:39 2007 +0300
@@ -367,9 +367,11 @@ static int getinclude(void *sc, const ch
 		}
 		script_path = t_strdup_printf("%s/%s", script_dir, script);
 	} else {
-		home = getenv("HOME");
+		home = getenv("SIEVE_DIR");
+		if (home == NULL)
+			home = getenv("HOME");
 		if (home == NULL) {
-			i_info("include: home directory not set "
+			i_info("include: sieve_dir and home not set "
 			       "(wanted script %s)", str_sanitize(script, 80));
 			return SIEVE_FAIL;
 		}


More information about the dovecot-cvs mailing list