1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 10:19:48 +01:00

msmtp: allow sending email from aliased addresses

This commit is contained in:
Linus Heckemann 2022-09-05 10:51:49 +02:00 committed by Robert Helgesson
parent 7b512c94ff
commit f9a35cacdc
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -28,9 +28,12 @@ let
tls_trust_file = smtp.tls.certificatesFile;
} // optionalAttrs (passwordCommand != null) {
passwordeval = toString passwordCommand;
} // msmtp.extraConfig) ++ optional primary ''
} // msmtp.extraConfig) ++ optional primary "account default : ${name}"
++ map (alias: ''
account default : ${name}'');
account ${alias} : ${name}
from ${alias}
'') aliases);
configFile = mailAccounts: ''
# Generated by Home Manager.