/* raw message */
$type0 = 'message';
$type1 = 'rfc822';
- $encoding = "US-ASCII";
+ $encoding = 'US-ASCII';
+ $header = $message->header;
}
/*
} else {
$filename = $header->getParameter('name');
}
+
$filename = decodeHeader($filename);
if (strlen($filename) < 1) {
if ($type1 == 'plain' && $type0 == 'text') {
}
if (strlen($filename) < 1) {
- $filename = 'untitled'.strip_tags($ent_id).$suffix;
+ $filename = 'untitled'.strip_tags($ent_id).'.'.$suffix;
} else {
$filename = "$filename.$suffix";
}