Source for file setup.php
Documentation is available at setup.php
* Message Details plugin - main setup script
* Plugin to view the RFC822 raw message output and the bodystructure of a message
* @author Marc Groot Koerkamp
* @copyright 2002 Marc Groot Koerkamp, The Netherlands
* @copyright 2002-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: setup.php 14840 2020-01-07 07:42:38Z pdontthink $
* @subpackage message_details
function squirrelmail_plugin_init_message_details()
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['read_body_header_right']['message_details'] =
'show_message_details';
* Add message details link in message view
function show_message_details() {
global $passed_id, $mailbox, $passed_ent_id, $color,
$params =
'?passed_ent_id=' .
$passed_ent_id .
'&passed_id=' .
$passed_id;
$print_text =
_("View Message Details");
$result =
'<script type="text/javascript" language="javascript">' .
"\n" .
" function MessageSource() {\n" .
' window.open("../plugins/message_details/message_details_main.php' .
$params .
'","MessageDetails","width=800,height=600");' .
"\n".
" | <a href=\"javascript:MessageSource();\" style=\"white-space: nowrap;\">$print_text</a>";
Documentation generated on Mon, 13 Jan 2020 04:25:16 +0100 by phpDocumentor 1.4.3