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:
Vonfry 2025-03-05 05:46:31 +08:00 committed by GitHub
parent 3f08cd8ef7
commit 6f71acf71b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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"
'';
}