/* START - HEADERS */ ?>
echo $lang_text["wbm_sender"] ?> |
echo htmlspecialchars(mimeHeaderDecode($header->fromaddress)); ?> (» echo $lang_text['wbm_ad_adbook'] ?>) |
echo $lang_text["wbm_to"] ?> |
echo htmlspecialchars(mimeHeaderDecode($header->toaddress)); ?> |
if(isset($header->ccaddress)): ?>
echo $lang_text["wbm_cc"] ?> |
echo htmlspecialchars(mimeHeaderDecode($header->ccaddress)); ?> |
endif; ?>
echo $lang_text["wbm_date"] ?> |
echo $date; ?> |
/* END - HEADERS */ ?>
/* START - MENUE */ ?>
echo std_button(ltext("wbm_email_reply"), 'javascript:submitReplyForm()'); ?> |
echo std_button(ltext("wbm_email_fwd"), 'javascript:submitForwardForm()'); ?> |
echo std_button(ltext("wbm_email_del"), "javascript:deleteOneMessage($id)"); ?> |
echo std_button(ltext("wbm_email_viewsource"), "javascript:location.href='email_viewsource.php?id=$id'"); ?> |
echo std_button(ltext("wbm_email_download"), "javascript:location.href='email_attach.php?id=$id&part=0&uniq=$mail_uniq&inline=0&filename=email.txt'"); ?> |
echo std_button(ltext("wbm_email_print"), "javascript:self.print()"); ?> |
/* END - MENUE */ ?>
$structure = imap_fetchstructure($mbox, $id);
$structarr = headerArray($structure);
$partscount = sizeof($structure->parts);
$attachNumber=0;
if( ($partscount > 1) || ($structure->type == TYPEMULTIPART && $structarr["parameters"]["boundary"]) )
{
?>
}
/*
echo ""; print_r($structure);
$z = imap_fetchbody($mbox, $id, $a);
print_r($z);
if(count($structure->parts)){
foreach($structure->parts as $part){
print_r(headerArray($part));
}
}else{
print_r(headerArray($structure));
}
echo " ";
*/
?>
if( ($partscount > 1) || ($structure->type == TYPEMULTIPART && $structarr["parameters"]["boundary"]) ){
for($i=0; $i<=$partscount; $i++){
$ha = headerArray($structure->parts[$i]);
if($i == 0 || showInLine($ha['type'], false)){
$body = imap_fetchbody($mbox, $id, ($i+1));
show_mail( $body, $ha['type'], $ha['encoding'] );
if($i == 0){
$reply_body = $body;
}
}
}
}else{
$ha = headerArray($structure);
show_mail( $reply_body = imap_fetchbody($mbox, $id, 1), $ha['type'], $ha['encoding'] );
}
?>
|