fix: stalwart new config format

This commit is contained in:
Patrick 2024-11-29 23:34:35 +01:00
parent 57454a768b
commit 27e1a7cc3f
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 1 additions and 6 deletions

View file

@ -205,17 +205,12 @@ in
enable = true; enable = true;
settings = settings =
let let
case = field: check: value: data: {
"if" = field;
${check} = value;
"then" = data;
};
ifthen = field: data: { ifthen = field: data: {
"if" = field; "if" = field;
"then" = data; "then" = data;
}; };
otherwise = value: { "else" = value; }; otherwise = value: { "else" = value; };
is-smtp = case "listener" "eq" "smtp"; is-smtp = ifthen "listener = 'smtp'";
is-authenticated = data: { is-authenticated = data: {
"if" = "!is_empty(authenticated_as)"; "if" = "!is_empty(authenticated_as)";
"then" = data; "then" = data;

Binary file not shown.