imap?
| From: | shi | Date: | Sun, 02 Sep 2001 16:01:54 +0000 |
| Subject: | imap? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65647@lists.php.net to get a copy of this message | ||
I'm using imap_header to get all the headers in a newsgroup on a NNTP-server
like this
if($nntp=imap_open("{sunsite.auc.dk/nntp:119}dk.admin","",""))
{
for($i=1;$i<5;$i++)
{
$header = imap_header($nntp, $i);
echo "MESSAGE ID: " .
HTMLSpecialChars($header->message_id) . "<BR>\n";
echo "SUBJECT:<a href='visInd.php'>" .
$header->Subject . "<br>\n</a>";
echo "SENDER ADDRESS: " .
HTMLSpecialChars($header->senderaddress) . "<BR>\n";
echo "REPLY-TO: " .
HTMLSpecialChars($header->reply_toaddress) . "<BR>\n";
print("DATE: $header->date<br>\n");
echo "REFERENCES: " . HTMLSpecialChars($header->references) .
"<BR>\n";
print("XREF: " . $header->xref) . "<BR>";
}
}
But I can't get it to write the XREF on the screen. Every thing else works.
I hope that you can help me
Thanks
Shimon