mirror of
https://github.com/nix-community/home-manager
synced 2024-11-04 18:29:45 +01:00
msmtp: allow sending email from aliased addresses
This commit is contained in:
parent
7b512c94ff
commit
f9a35cacdc
1 changed files with 5 additions and 2 deletions
|
@ -28,9 +28,12 @@ let
|
||||||
tls_trust_file = smtp.tls.certificatesFile;
|
tls_trust_file = smtp.tls.certificatesFile;
|
||||||
} // optionalAttrs (passwordCommand != null) {
|
} // optionalAttrs (passwordCommand != null) {
|
||||||
passwordeval = toString passwordCommand;
|
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: ''
|
configFile = mailAccounts: ''
|
||||||
# Generated by Home Manager.
|
# Generated by Home Manager.
|
||||||
|
|
Loading…
Reference in a new issue