mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
git: correct value of envelopeSender for msmtp (#1838)
The value should be "auto", not `true`. Also fix news entry.
This commit is contained in:
parent
aa479b0124
commit
f45c7000d5
4 changed files with 6 additions and 5 deletions
|
@ -1865,8 +1865,9 @@ in
|
|||
}
|
||||
{
|
||||
time = "2021-02-25T22:36:43+00:00";
|
||||
condition = config.programs.git.enable
|
||||
&& any config.accounts.email.accounts (account: account.msmtp.enable);
|
||||
condition = config.programs.git.enable && any (msmtp: msmtp.enable)
|
||||
(mapAttrsToList (name: account: account.msmtp)
|
||||
config.accounts.email.accounts);
|
||||
message = ''
|
||||
Git will now defer to msmtp for sending emails if
|
||||
'accounts.email.accounts.<name>.msmtp.enable' is true.
|
||||
|
|
|
@ -278,7 +278,7 @@ in {
|
|||
with account;
|
||||
nameValuePair "sendemail.${name}" (if account.msmtp.enable then {
|
||||
smtpServer = "${pkgs.msmtp}/bin/msmtp";
|
||||
envelopeSender = true;
|
||||
envelopeSender = "auto";
|
||||
from = address;
|
||||
} else
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
smtpUser = "home.manager.jr"
|
||||
|
||||
[sendemail "hm@example.com"]
|
||||
envelopeSender = true
|
||||
envelopeSender = "auto"
|
||||
from = "hm@example.com"
|
||||
smtpServer = "@msmtp@/bin/msmtp"
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ with lib;
|
|||
assertGitConfig "sendemail.hm@example.com.from" "hm@example.com"
|
||||
assertGitConfig "sendemail.hm-account.from" "hm@example.org"
|
||||
assertGitConfig "sendemail.hm@example.com.smtpServer" "${pkgs.msmtp}/bin/msmtp"
|
||||
assertGitConfig "sendemail.hm@example.com.envelopeSender" "true"
|
||||
assertGitConfig "sendemail.hm@example.com.envelopeSender" "auto"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue