display sender's name and email
[squirrelmail.git] / src / printer_friendly_bottom.php
index 6679cc542a811a973d93a8501f00c8bcec938833..a407e3e73080d612c45b8b0983f39b0d67fda378 100644 (file)
@@ -237,7 +237,7 @@ function pf_show_attachments($message, $exclude_id, $mailbox, $id) {
             }
             $from_o = $rfc822_header->from;
             if (is_object($from_o)) {
-                $from_name = decodeHeader($from_o->getAddress(false));
+                $from_name = decodeHeader($from_o->getAddress(true));
             } else {
                 $from_name = _("Unknown sender");
             }
@@ -260,7 +260,7 @@ function pf_show_attachments($message, $exclude_id, $mailbox, $id) {
         $display_filename = $filename;
 
         // TODO: maybe make it nicer?
-        $attachments .= '<table border="1"><tr><th colspan="2">'.decodeHeader($display_filename).'</th></tr>' .
+        $attachments .= '<table cellpadding="0" cellspacing="0" border="1"><tr><th colspan="2">'.decodeHeader($display_filename).'</th></tr>' .
             '<tr border="0">'.
             html_tag( 'td',_("Size:"), 'right') .
             html_tag( 'td',show_readable_size($header->size), 'left') .