global $debug_mime;
$debug_mime = false;
- include "../functions/i18n.php";
include "../functions/imap.php";
- include "../config/config.php";
/** Setting up the objects that have the structure for the message **/
fputs ($imap_stream, "a010 FETCH $id BODY[$ent_id]\r\n");
$data = sqimap_read_data ($imap_stream, 'a010', true, $response, $message);
$topline = array_shift($data);
- while (! ereg('\\* [0-9]+ FETCH ', $topline) && data)
+ while (! ereg('\\* [0-9]+ FETCH ', $topline) && $data)
$topline = array_shift($data);
$wholemessage = implode('', $data);
global $show_html_default;
if (! $message)
- return;
+ return 0;
// Show text/plain or text/html -- the first one we find.
if ($message->header->type0 == 'text' &&