[pmg-devel] [PATCH 2/2] pmgreport: add nodename in reports mailfrom display name
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Jan 30 14:26:09 CET 2020
Add the nodename in the front to have the same format as the title off the PMG
admin interface.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PMG/CLI/pmgreport.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PMG/CLI/pmgreport.pm b/src/PMG/CLI/pmgreport.pm
index 9c05fe0..d11ec57 100644
--- a/src/PMG/CLI/pmgreport.pm
+++ b/src/PMG/CLI/pmgreport.pm
@@ -358,7 +358,7 @@ __PACKAGE__->register_method ({
return undef;
}
- my $mailfrom = "Proxmox Mail Gateway <postmaster\@$fqdn>";
+ my $mailfrom = "$nodename - Proxmox Mail Gateway <postmaster\@$fqdn>";
PMG::Utils::finalize_report($tt, 'pmgreport.tt', $vars, $mailfrom, $email, $param->{debug});
return undef;
--
2.20.1
More information about the pmg-devel
mailing list