# HG changeset patch # User Timo Sirainen # Date 1507289940 -10800 # Node ID 7bb07a5745d4ff2d5be7e2f083a3bb73cd36a737 # Parent 8dc7e629897a1d9dbf8748175f4359b176e17d51 pop3: Expand settings to fix rawlog_dir Even if %variables weren't used in rawlog_dir, the path was always prefixed with "0". diff -r 8dc7e629897a -r 7bb07a5745d4 src/pop3/main.c --- a/src/pop3/main.c Fri Oct 06 12:47:06 2017 +0300 +++ b/src/pop3/main.c Fri Oct 06 14:39:00 2017 +0300 @@ -10,6 +10,7 @@ #include "str.h" #include "process-title.h" #include "restrict-access.h" +#include "settings-parser.h" #include "master-service.h" #include "master-login.h" #include "master-interface.h" @@ -102,7 +103,7 @@ "-ERR [SYS/TEMP] "MAIL_ERRSTR_CRITICAL_MSG"\r\n"; struct mail_storage_service_user *user; struct mail_user *mail_user; - const struct pop3_settings *set; + struct pop3_settings *set; if (mail_storage_service_lookup_next(storage_service, input, &user, &mail_user, error_r) <= 0) { @@ -117,6 +118,9 @@ if (set->verbose_proctitle) verbose_proctitle = TRUE; + settings_var_expand(&pop3_setting_parser_info, set, + mail_user->pool, mail_user_var_expand_table(mail_user)); + *client_r = client_create(fd_in, fd_out, input->session_id, mail_user, user, set);