Display PGP/MIME signature attachments as "Digital Signature" (#1488570)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Display PGP/MIME signature attachments as "Digital Signature" (#1488570) |
| | | - Workaround UW-IMAP bug where hierarchy separator is added to the shared folder name (#1488879) |
| | | - Fix version comparisons with -stable suffix (#1488876) |
| | | - Add unsupported alternative parts to attachments list (#1488870) |
| | |
| | | $labels['defaultcharset'] = 'Default Character Set'; |
| | | $labels['htmlmessage'] = 'HTML Message'; |
| | | $labels['messagepart'] = 'Part'; |
| | | $labels['digitalsig'] = 'Digital Signature'; |
| | | $labels['dateformat'] = 'Date format'; |
| | | $labels['timeformat'] = 'Time format'; |
| | | $labels['prettydate'] = 'Pretty dates'; |
| | |
| | | } |
| | | |
| | | // return attachment filename, handle empty filename case |
| | | function rcmail_attachment_name($attachment) |
| | | function rcmail_attachment_name($attachment, $display = false) |
| | | { |
| | | $filename = $attachment->filename; |
| | | |
| | |
| | | |
| | | $filename = preg_replace('[\r\n]', '', $filename); |
| | | |
| | | // Display smart names for some known mimetypes |
| | | if ($display) { |
| | | if (preg_match('/application\/(pgp|pkcs7)-signature/i', $attachment->mimetype)) { |
| | | $filename = rcube_label('digitalsig'); |
| | | } |
| | | } |
| | | |
| | | return $filename; |
| | | } |
| | | |
| | |
| | | |
| | | if (sizeof($MESSAGE->attachments)) { |
| | | foreach ($MESSAGE->attachments as $attach_prop) { |
| | | $filename = rcmail_attachment_name($attach_prop); |
| | | $filename = rcmail_attachment_name($attach_prop, true); |
| | | |
| | | if ($PRINT_MODE) { |
| | | $size = $RCMAIL->message_part_size($attach_prop); |