$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$mbx_response = sqimap_mailbox_select($imapConnection, $mailbox);
if (isset($messages[$mbx_response['UIDVALIDITY']][$passed_id])) {
- $message = &$messages[$mbx_response['UIDVALIDITY']][$passed_id];
+ $message = $messages[$mbx_response['UIDVALIDITY']][$passed_id];
} else {
$message = sqimap_get_message($imapConnection, $passed_id, $mailbox);
}
if ($passed_ent_id) {
- $message = &$message->getEntity($passed_ent_id);
+ $message = $message->getEntity($passed_ent_id);
}
/* --start display setup-- */
}
$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");
}
$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') .
/* --end pf-specific functions */
-?>
\ No newline at end of file
+?>