mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Support HTML autoreplies
This commit is contained in:
@@ -46,3 +46,4 @@ Changed the mail queue date format to yyyy/mm/dd, for easier sorting.
|
||||
When flushing selected queued quarantined messages, the -qQ flag is added so that it actually works.
|
||||
---- Changes since 1.490 ----
|
||||
If multiple alias files are defined, one can be selected when adding a new alias.
|
||||
Autoreply messages starting with <html> or <body> will now be sent using the text/html MIME type.
|
||||
|
||||
@@ -203,17 +203,17 @@ foreach $f (@files) {
|
||||
'data' => $data });
|
||||
}
|
||||
|
||||
# Work out the encoding
|
||||
# Work out the content type and encoding
|
||||
$type = $rbody =~ /<html[^>]*>|<body[^>]*>/i ? "text/html" : "text/plain";
|
||||
if ($rbody =~ /[\177-\377]/) {
|
||||
# High-ascii
|
||||
$enc = "quoted-printable";
|
||||
$encrbody = "ed_encode($rbody);
|
||||
$type = "text/plain; charset=iso-8859-1";
|
||||
$type .= "; charset=iso-8859-1";
|
||||
}
|
||||
else {
|
||||
$enc = undef;
|
||||
$encrbody = $rbody;
|
||||
$type = "text/plain";
|
||||
}
|
||||
|
||||
# run sendmail and feed it the reply
|
||||
|
||||
Reference in New Issue
Block a user