search_after_form src/search.php do_hook
search_bottom src/search.php do_hook
logout src/signout.php do_hook
+ message_body (since 1.5.2) src/view_html.php do_hook
+ message_body (since 1.5.2) src/view_text.php do_hook
webmail_top src/webmail.php do_hook
webmail_bottom src/webmail.php concat_hook
logout_above_text src/signout.php concat_hook
$passed_id = (int) $temp;
}
-global $view_unsafe_images;
-if (sqgetGlobalVar('view_unsafe_images', $temp, SQ_GET)) {
- $view_unsafe_images = (bool) $temp;
-} else {
- $view_unsafe_images = false;
-}
-
// TODO: add required var checks here.
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$body = mime_fetch_body($imap_stream, $passed_id, $ent_id);
$body = decodeBody($body, $encoding);
+$hookResults = do_hook('message_body', $body);
+$body = $hookResults[1];
/**
* TODO: check if xtra_code is needed.
header('Content-Type: text/html; charset=' . $charset);
echo $body;
-?>
+?>
\ No newline at end of file
$body = mime_fetch_body($imapConnection, $passed_id, $ent_id);
$body = decodeBody($body, $encoding);
+$hookResults = do_hook('message_body', $body);
+$body = $hookResults[1];
if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
function_exists($languages[$squirrelmail_language]['XTRA_CODE'].'_decode')) {