Fix empty subject header display (#1485383) + improve safari CSS hacks
| | |
| | | if (!$headers) |
| | | $headers = is_object($MESSAGE->headers) ? get_object_vars($MESSAGE->headers) : $MESSAGE->headers; |
| | | |
| | | // add empty subject if none exsists |
| | | if (empty($headers['subject'])) |
| | | $headers['subject'] = rcube_label('nosubject'); |
| | | |
| | | $header_count = 0; |
| | | |
| | | // allow the following attributes to be added to the <table> tag |
| | |
| | | } |
| | | else if (in_array($hkey, array('from', 'to', 'cc', 'bcc'))) |
| | | $header_value = Q(rcmail_address_string($headers[$hkey], null, true, $attrib['addicon']), 'show'); |
| | | else if ($hkey == 'subject' && empty($headers[$hkey])) |
| | | $header_value = Q(rcube_label('nosubject')); |
| | | else |
| | | $header_value = Q(trim($IMAP->decode_header($headers[$hkey]))); |
| | | |
| | |
| | | width: expression(parseInt(document.getElementById('mailcontframe').clientWidth)+'px'); |
| | | } |
| | | |
| | | /* safari hack \*/ |
| | | html>body*#messagelist[id$="messagelist"]:not([class="none"]) { width: 99%; } |
| | | html>body*input[type$="file"]:not([class="none"]) { background-color: transparent; border:0; } |
| | | /**/ |
| | | |
| | | #messagelist thead tr td |
| | | { |
| | | height: 20px; |
| | |
| | | color: #CCCCCC; |
| | | } |
| | | |
| | | /* safari hacks \*/ |
| | | html>body*#messagelist[id$="messagelist"]:not([class="none"]) { width: 99.8%; } |
| | | html>body*#messagelist[id$="messagelist"]:not([class="none"]) tr td.flag, |
| | | html>body*#messagelist[id$="messagelist"]:not([class="none"]) tr td.icon { width: 20px; } |
| | | html>body*input[type$="file"]:not([class="none"]) { background-color: transparent; border: 0; } |
| | | /**/ |
| | | |
| | | #quotadisplay |
| | | { |