Source for file view_header.php
Documentation is available at view_header.php
* This is the code to view the message header.
* @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: view_header.php,v 1.16.2.11 2006/04/14 22:27:08 jervfors Exp $
* Path for SquirrelMail required files.
/* SquirrelMail required files. */
require_once(SM_PATH .
'include/validate.php');
require_once(SM_PATH .
'functions/global.php');
require_once(SM_PATH .
'functions/imap.php');
require_once(SM_PATH .
'functions/html.php');
require_once(SM_PATH .
'functions/url_parser.php');
$header_output =
array();
true, $a, $b, $uid_support);
$query =
"FETCH $id BODY[".
$passed_ent_id.
'.HEADER]';
true, $a, $b, $uid_support);
for ($i=
1; $i <
count($read); $i++
) {
case (eregi("^>", $line)):
case (eregi("^[ |\t]", $line)):
case (eregi("^([^:]+):(.+)", $line, $regs)):
$first[$i] =
$regs[1] .
':';
$second[$i] =
trim($line);
for ($i=
0; $i <
count($second); $i =
$j) {
$f =
(isset
($first[$i]) ?
$first[$i] :
'');
$s =
(isset
($second[$i]) ?
nl2br($second[$i]) :
'');
while (($first[$j] ==
'') &&
($j <
count($first))) {
$s .=
' ' .
nl2br($second[$j]);
/* do not mark these headers as emailaddresses */
if($lowf !=
'message-id:' &&
$lowf !=
'in-reply-to:' &&
$lowf !=
'references:') {
$header_output[] =
array($f,$s);
$ret_addr =
SM_PATH .
'src/read_body.php?'.
$queryStr;
'<table width="100%" cellpadding="2" cellspacing="0" border="0" '.
'align="center">' .
"\n" .
'<tr><td bgcolor="'.
$color[9].
'" width="100%" align="center"><b>'.
_("Viewing Full Header") .
'</b> - '.
echo
'">' .
_("View message") .
"</a></b></td></tr></table>\n";
'<table width="99%" cellpadding="2" cellspacing="0" border="0" '.
"align=center>\n".
'<tr><td>',
'</td></tr></table>'.
"\n"
$passed_id = (int)
$temp;
$imapConnection =
sqimap_login($username, $key, $imapServerAddress,
Documentation generated on Sat, 07 Oct 2006 16:34:04 +0300 by phpDocumentor 1.3.0RC6