[pve-devel] [PATCH] Added MIME-Version header to VZDump emails

danhunsaker at gmail.com danhunsaker at gmail.com
Thu Feb 13 07:40:49 CET 2014


From: Daniel Hunsaker <danhunsaker at gmail.com>

This header is needed by many clients to properly interpret the `multipart/alternative` `Content-Type`.
---
 PVE/VZDump.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 77fd211..4c91596 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -285,6 +285,7 @@ my $sendmail = sub {
 
     my $rcvrtxt = join (', ', @$mailto);
 
+    print MAIL "MIME-Version: 1.0\n";
     print MAIL "Content-Type: multipart/alternative;\n";
     print MAIL "\tboundary=\"$boundary\"\n";
     print MAIL "FROM: vzdump backup tool <root>\n";
-- 
1.8.3.2




More information about the pve-devel mailing list