From b26171227804a135b8ba4fef605753ee2121be67 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Sat, 29 Dec 2012 10:24:46 -0500 Subject: [PATCH] Merge branch 'master' of github.com:roundcube/roundcubemail --- program/steps/mail/compose.inc | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 379e920..74c6d5f 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -1154,16 +1154,7 @@ } $mimetype = $part->ctype_primary . '/' . $part->ctype_secondary; - $filename = $part->filename; - if (!strlen($filename)) { - if ($mimetype == 'text/html') { - $filename = rcube_label('htmlmessage'); - } - else { - $filename = 'Part_'.$pid; - } - $filename .= '.' . $part->ctype_secondary; - } + $filename = rcmail_attachment_name($part); $attachment = array( 'group' => $COMPOSE['id'], -- Gitblit v1.9.1