71b0ba293bc77b1b5c7f11d993efd2d17e0f8ba1
4 * Plugin to view the RFC822 raw message output and the bodystructure of a message
6 * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
11 * @subpackage message_details
15 * Initialize the plugin
17 function squirrelmail_plugin_init_message_details()
19 global $squirrelmail_plugin_hooks;
21 $squirrelmail_plugin_hooks['read_body_header_right']['message_details'] = 'show_message_details';
24 function show_message_details() {
25 global $passed_id, $mailbox, $ent_num, $color,
28 if (strlen(trim($mailbox)) < 1) {
32 $params = '?passed_ent_id=' . $ent_num .
33 '&mailbox=' . urlencode($mailbox) .
34 '&passed_id=' . $passed_id;
36 $print_text = _("View Message details");
39 /* Output the link. */
41 $result = '<script type="text/javascript" language="javascript">' . "\n" .
43 " function MessageSource() {\n" .
44 ' window.open("../plugins/message_details/message_details_main.php' .
45 $params . '","MessageDetails","width=800,height=600");' . "\n".
49 " | <a href=\"javascript:MessageSource();\">$print_text</a>\n";