subject . $header->date); $date = dateFormat(strtotime($header->date),"datetime"); $subject = $header->subject ? decode_subject($header->subject) : "[".$lang_text["wbm_nosubject"]."]"; ?>
ccaddress)): ?>
fromaddress)); ?> (» )
toaddress)); ?>
ccaddress)); ?>
parts); $attachNumber=0; if( ($partscount > 1) || ($structure->type == TYPEMULTIPART && $structarr["parameters"]["boundary"]) ) { ?> parts[$j]); if($ha){ $fn = ''; if($ha["dparameters"]["filename"]){ $fn = $ha["dparameters"]["filename"]; } if($ha["parameters"]["name"]){ $fn = $ha["parameters"]["name"]; } if(!$fn){ $fn = $lang_text["wbm_unknown"]; } $inline = showInLine($ha["type"]) ? 1 : 0; $attachNumber++; ?>
target="_blank" href="email_attach.php?id=&part=&uniq=&inline="> ()
"; 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 ""; */ ?> 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'] ); } ?>
reply_toaddress)) { $reply_sender = htmlspecialchars(mimeHeaderDecode($header->reply_toaddress)); } else { $reply_sender = htmlspecialchars(mimeHeaderDecode($header->fromaddress)); } echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "
\n"; /* FORWARD-FORM */ if(isset($replyTo)) { $fwd_sender = $replyTo; } else { $fwd_sender = $sender; } $fwd_zitat = str_replace("%date%",$date,$lang_text["wbm_fwdzitat"]); $fwd_zitat = str_replace("%time%",$time,$fwd_zitat); $fwd_sender = str_replace("\n","",$fwd_sender); $fwd_sender = str_replace("\r","",$fwd_sender); $fwd_sender = str_replace("\0","",$fwd_sender); $fwd_zitat = str_replace("%sender%",$fwd_sender,$fwd_zitat); $fwd_zitat = $fwd_zitat."\n> ".str_replace("\n","\n> ",(htmlspecialchars($reply_body))."\n"); echo "
\n"; echo "\n"; echo "\n"; echo ""; if ($attachNumber){ echo "\n"; } echo "
\n"; imap_close($mbox); endif; include("email_footer.php"); ?>