introduce "mailboxes_dir" config ini option to avoid hardcoding /home/vmail/mail/....

in source code and to improve testability.
This commit is contained in:
holger krekel
2024-07-09 14:50:27 +02:00
parent 4b0600a453
commit c8661fd135
9 changed files with 59 additions and 34 deletions

View File

@@ -67,7 +67,7 @@ userdb {
##
# Mailboxes are stored in the "mail" directory of the vmail user home.
mail_location = maildir:/home/vmail/mail/%d/%u
mail_location = maildir:{{ config.mailboxes_dir }}/%u
namespace inbox {
inbox = yes