echo strftime("%b %d %Y %I:%M%p ", $fields["time"]) ;
echo " from " . htmlspecialchars($fields["from"]) ;
- if (strlen($fields["rfca"]) > 0) {
+ if (isset($fields["rfca"]) && strlen($fields["rfca"]) > 0) {
echo " <" . htmlspecialchars($fields["rfca"]) . ">" ;
}
else if ( (strlen($fields["node"]) > 0)
}
}
- if (strlen($fields["rcpt"]) > 0) {
+ if (isset($fields["rcpt"]) && strlen($fields["rcpt"]) > 0) {
echo " to " . htmlspecialchars($fields["rcpt"]) ;
}
echo "</I></B><BR>\n" ;
}
// Do message text
- echo $fields["text"] . "<BR>";
+ if ($fields['formatet_text'] != "")
+ echo $fields['formatet_text'] . "<BR>";
+ else
+ echo $fields["text"] . "<BR>";
echo '</TD></TR></TABLE><BR>' ;
}
+function get_message_partlist($msgnum) {
+
+ // Fetch the message from the server
+ list($ok, $response, $fields) = ctdl_fetch_message($msgnum);
+
+ // Bail out gracefully if the message isn't there.
+ if (!$ok) {
+ echo "Error: " . htmlspecialchars($response) . "<BR>" ;
+ return false;
+ }
+ if (isset($fields['part']))
+ {
+ $parts = explode('|', $fields['part']);
+ print_r($parts);
+ return $parts;
+
+ }
+ return false;
+}
+
?>