From aeca3e5bd8733724672b5cd9184d69eae8599874 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sun, 8 Nov 2009 23:35:48 +0100
Subject: [PATCH] (Hopefully) fixed home expansion in LDA Sieve plugin.

---
 src/plugins/lda-sieve/lda-sieve-plugin.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/lda-sieve/lda-sieve-plugin.c b/src/plugins/lda-sieve/lda-sieve-plugin.c
index 9e92d72d8..57c4593f0 100644
--- a/src/plugins/lda-sieve/lda-sieve-plugin.c
+++ b/src/plugins/lda-sieve/lda-sieve-plugin.c
@@ -136,7 +136,7 @@ static const char *lda_sieve_get_personal_path(struct mail_user *user)
 			return NULL;
 		}
 
-		script_path = home_expand(script_path);
+		script_path = mail_user_home_expand(user, script_path);
 
 		if (*script_path != '/' && *script_path != '\0') {
 			/* relative path. change to absolute. */
@@ -157,7 +157,7 @@ static const char *lda_sieve_get_personal_path(struct mail_user *user)
 			return NULL;
 		}
 
-		script_path = home_expand(SIEVE_DEFAULT_PATH);
+		script_path = mail_user_home_expand(user, SIEVE_DEFAULT_PATH);
 	}
 
 	return script_path;
-- 
GitLab