From 4101df7ddc817c192257303742aeb0c93c0979ed Mon Sep 17 00:00:00 2001 From: Stephan Bosch <stephan@rename-it.nl> Date: Tue, 26 Feb 2008 09:55:39 +0100 Subject: [PATCH] Expand ~ to home in sieve path. --- src/plugins/lda-sieve/lda-sieve-plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/lda-sieve/lda-sieve-plugin.c b/src/plugins/lda-sieve/lda-sieve-plugin.c index 2e11ec30d..a6b74c248 100644 --- a/src/plugins/lda-sieve/lda-sieve-plugin.c +++ b/src/plugins/lda-sieve/lda-sieve-plugin.c @@ -31,6 +31,8 @@ static const char *lda_sieve_get_path(void) return NULL; } + script_path = home_expand(script_path); + if (*script_path != '/' && *script_path != '\0') { /* relative path. change to absolute. */ script_path = t_strconcat(getenv("HOME"), "/", -- GitLab