Skip to content

Commit

Permalink
Fix so text/calendar parts are listed as attachments even if not mark…
Browse files Browse the repository at this point in the history
…ed as such (#1490325)
  • Loading branch information
alecpl committed Apr 6, 2015
1 parent b0c502c commit 98e4614
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CHANGELOG Roundcube Webmail
- Fix PHP warning: Non-static method PEAR::setErrorHandling() should not be called statically (#1490343)
- Fix tables listing routine on mysql and postgres so it skips system or other database tables and views (#1490337)
- Fix message list header in classic skin on window resize in Internet Explorer (#1490213)
- Fix so text/calendar parts are listed as attachments even if not marked as such (#1490325)

RELEASE 1.1.1
-------------
Expand Down
8 changes: 8 additions & 0 deletions program/lib/Roundcube/rcube_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,14 @@ private function parse_structure($structure, $recursive = false)
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
Expand Down

0 comments on commit 98e4614

Please sign in to comment.