fix: make surprising lmtp_save_to_detail_mailbox behaviour optional

This commit is contained in:
Ruben Maher 2019-09-01 20:21:11 +09:00
parent 4b480d1445
commit b4f6d96365
2 changed files with 11 additions and 1 deletions

View File

@ -144,6 +144,16 @@ in
default = {}; default = {};
}; };
lmptSaveToDetailMailbox = mkOption {
type = types.enum ["yes" "no"];
default = "yes";
description = ''
If an email address is delimited by a "+", should it be filed into a
mailbox matching the string after the "+"? For example,
user1+test@example.com would be filed into the mailbox "test".
'';
};
extraVirtualAliases = mkOption { extraVirtualAliases = mkOption {
type = types.loaOf (mkOptionType { type = types.loaOf (mkOptionType {
name = "Login Account"; name = "Login Account";

View File

@ -107,7 +107,7 @@ in
} }
recipient_delimiter = + recipient_delimiter = +
lmtp_save_to_detail_mailbox = yes lmtp_save_to_detail_mailbox = ${cfg.lmptSaveToDetailMailbox}
protocol lmtp { protocol lmtp {
mail_plugins = $mail_plugins sieve mail_plugins = $mail_plugins sieve