git: apply sendmailCmd instead of smtpServer (#6399)
In manpage of git-send-email --smtp-server,
For backward compatibility, this option can also specify
full pathname of a sendmail-like program instead; the program
must support the -i option. This method does not support
passing arguments or using plain command names. For those use
cases, consider using --sendmail-cmd instead.
This commit is contained in:
parent
3f08cd8ef7
commit
6f71acf71b
3 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@
|
|||
[sendemail "hm@example.com"]
|
||||
envelopeSender = "auto"
|
||||
from = "H. M. Test <hm@example.com>"
|
||||
smtpServer = "@msmtp@/bin/msmtp"
|
||||
sendmailCmd = "@msmtp@/bin/msmtp"
|
||||
|
||||
[user]
|
||||
email = "hm@example.com"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
assertGitConfig "sendemail.hm@example.com.from" "H. M. Test <hm@example.com>"
|
||||
assertGitConfig "sendemail.hm-account.from" "H. M. Test Jr. <hm@example.org>"
|
||||
assertGitConfig "sendemail.hm@example.com.smtpServer" "${pkgs.msmtp}/bin/msmtp"
|
||||
assertGitConfig "sendemail.hm@example.com.sendmailCmd" "${pkgs.msmtp}/bin/msmtp"
|
||||
assertGitConfig "sendemail.hm@example.com.envelopeSender" "auto"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue