summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-03-13 11:42:08 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-03-13 11:42:08 +0100
commite7ac4c0958d6507ad902ca08a13b0321e59dae81 (patch)
treef00245a95c170b6ec0df3506b90d9656b893b492
parentee67dcc3ec561eeef2e08b1240cf625fe8491d63 (diff)
downloadarch-mirror-tools-e7ac4c0958d6507ad902ca08a13b0321e59dae81.tar.gz
arch-mirror-tools-e7ac4c0958d6507ad902ca08a13b0321e59dae81.tar.xz
generate-mirror-mail.pl: Template sender name
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xbin/generate-mirror-mail.pl5
-rw-r--r--settings.conf.example1
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 (<STDIN>) {
},
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