$name = $header->getParameter('name');
if(!trim($name)) {
if (!trim( $header->id )) {
- $filename = 'untitled-[' . $this->entity_id . ']' ;
+ $filename = 'untitled-[' . $this->entity_id . ']' . '.' . strtolower($header->type1);
} else {
- $filename = 'cid: ' . $header->id;
+ $filename = 'cid: ' . $header->id . '.' . strtolower($header->type1);
}
} else {
$filename = $name;
$filename = $header->getParameter('name');
if (!trim($filename)) {
if (!trim( $header->id )) {
- $filename = 'untitled-[' . $this->entity_id . ']' ;
+ $filename = 'untitled-[' . $this->entity_id . ']' . '.' . strtolower($header->type1);
} else {
- $filename = 'cid: ' . $header->id;
+ $filename = 'cid: ' . $header->id . '.' . strtolower($header->type1);
}
}
}
- Now allow multiple plugins to handle (add links for) a single
attachment MIME type.
- Fixed sqauth_read_password() for plugins on the login_verified hook.
+ - Forced addition of a file suffix to attachments that lack a filename
+ (helps forwarded messages avoid spam filters) (Thanks to Petr
+ Kletecka) (#3139004).
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------