Commit d1f7c855 authored by Dietmar Maurer's avatar Dietmar Maurer

vzdump: add MIME-Version header

Some clients need this to correctly interpret multipart messages.
parent e7f5997e
...@@ -287,6 +287,8 @@ my $sendmail = sub { ...@@ -287,6 +287,8 @@ my $sendmail = sub {
print MAIL "Content-Type: multipart/alternative;\n"; print MAIL "Content-Type: multipart/alternative;\n";
print MAIL "\tboundary=\"$boundary\"\n"; print MAIL "\tboundary=\"$boundary\"\n";
print MAIL "MIME-Version: 1.0\n";
print MAIL "FROM: vzdump backup tool <root>\n"; print MAIL "FROM: vzdump backup tool <root>\n";
print MAIL "TO: $rcvrtxt\n"; print MAIL "TO: $rcvrtxt\n";
print MAIL "SUBJECT: vzdump backup status ($hostname) : $stat\n"; print MAIL "SUBJECT: vzdump backup status ($hostname) : $stat\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment