diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-28 12:40:57 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-28 12:40:57 +0100 |
commit | be72fb3597c21ca3aaa058adf41bb72d53d197c7 (patch) | |
tree | f1f77633fb77f105305967b760f7d37a8372409d /program/lib/Roundcube | |
parent | 8809a1828477101ade03b261662df089e268ecb4 (diff) |
Unified attachments filenames handling for message parts without a filename
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_message.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index 9fea8382a..d450bb439 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -106,7 +106,6 @@ class rcube_message if (!empty($this->headers->structure)) { $this->get_mime_numbers($this->headers->structure); $this->parse_structure($this->headers->structure); - $this->parse_attachments(); } else { $this->body = $this->storage->get_body($uid); @@ -651,26 +650,6 @@ class rcube_message /** - * Parse attachment parts - */ - private function parse_attachments() - { - // Attachment must have a name - foreach ($this->attachments as $attachment) { - if (!$attachment->filename) { - $ext = rcube_mime::get_mime_extensions($attachment->mimetype); - $ext = array_shift($ext); - - $attachment->filename = 'Part_' . $attachment->mime_id; - if ($ext) { - $attachment->filename .= '.' . $ext; - } - } - } - } - - - /** * Fill aflat array with references to all parts, indexed by part numbers * * @param rcube_message_part $part Message body structure |