diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-04-06 13:10:06 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-04-06 13:10:06 +0200 |
commit | 98e4614b0da073b04ba54bfee1df3491dcea6762 (patch) | |
tree | 82f793c03f1c21046aa2e25d90b09ac8b550ad86 /program/lib | |
parent | b0c502c4c2cbe8e2bc4c70afadf0d3700810dd24 (diff) |
Fix so text/calendar parts are listed as attachments even if not marked as such (#1490325)
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/Roundcube/rcube_message.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index b135ae0ff..449a3c3b4 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -791,6 +791,14 @@ class rcube_message else if ($mail_part->mimetype == 'message/rfc822') { $this->parse_structure($mail_part); } + // calendar part not marked as attachment (#1490325) + else if ($part_mimetype == 'text/calendar') { + if (!$mail_part->filename) { + $mail_part->filename = 'calendar.ics'; + } + + $this->attachments[] = $mail_part; + } } // if this was a related part try to resolve references |