From e7ac4c0958d6507ad902ca08a13b0321e59dae81 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 13 Mar 2018 11:42:08 +0100 Subject: generate-mirror-mail.pl: Template sender name Signed-off-by: Florian Pritz --- bin/generate-mirror-mail.pl | 5 +++-- settings.conf.example | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/generate-mirror-mail.pl b/bin/generate-mirror-mail.pl index 037669e..4b31eb6 100755 --- a/bin/generate-mirror-mail.pl +++ b/bin/generate-mirror-mail.pl @@ -45,7 +45,7 @@ investigate? {$out_of_sync{mirror_urls}} Thanks, -Florian +{$mail_from_name} ', }, 'connection-failed' => { @@ -59,7 +59,7 @@ please check what\'s going on? {$connection_failed{mirror_urls}} Thanks, -Florian +{$mail_from_name} ', }, ); @@ -177,6 +177,7 @@ while () { }, mirror_name => $mirror_name, mirror_url => $url, + mail_from_name => $Config->{misc}->{name} // die "misc.name not set in config", ); my @protocols = map {${$_}{protocol}} @connection_failed; diff --git a/settings.conf.example b/settings.conf.example index e1f4ab3..d24d01d 100644 --- a/settings.conf.example +++ b/settings.conf.example @@ -4,3 +4,4 @@ password=bar [misc] email_from = "foo@bar.com" +name = Foobar -- cgit v1.2.3-24-g4f1b