mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-30 14:11:02 +01:00
git: add realName inside From field
We currently have no way of specifying the sender's name inside the
From field, making a patch sent through `git send-email` appear as
coming from "xxx@domain.com".
In this commit we make this field follow the standard
realName <email>
format.
This commit is contained in:
parent
3dfe05aa9b
commit
2b87a11125
5 changed files with 11 additions and 10 deletions
|
|
@ -392,7 +392,7 @@ in {
|
|||
nameValuePair "sendemail.${name}" (if account.msmtp.enable then {
|
||||
smtpServer = "${pkgs.msmtp}/bin/msmtp";
|
||||
envelopeSender = "auto";
|
||||
from = address;
|
||||
from = "${realName} <${address}>";
|
||||
} else
|
||||
{
|
||||
smtpEncryption = if smtp.tls.enable then
|
||||
|
|
@ -407,7 +407,7 @@ in {
|
|||
mkIf smtp.tls.enable (toString smtp.tls.certificatesFile);
|
||||
smtpServer = smtp.host;
|
||||
smtpUser = userName;
|
||||
from = address;
|
||||
from = "${realName} <${address}>";
|
||||
} // optionalAttrs (smtp.port != null) {
|
||||
smtpServerPort = smtp.port;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue