<?if(VALID_DOCUMENT != 1) die('what?');?>
<div class="small left">
<?=$this->header->date_print(true)?>
</div>
<div class="left giant bold">
<?=$this->header->subject_print()?>
</div>
<hr/>
<div>
<b><?=$this->header->from_print(false)?></b>
to
<?=$this->header->get_all_recepients_presentation()?>
<?if($this->ifnntp){?>
<br/>
<?=match_links($this->header->newsgroups)?> (newsgroup)
<?}?>
</div>
<div>
<a href="<?=$_SERVER['PHP_SELF']?>?action=compose-reply&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>&standalone=true">reply</a>
<a href="<?=$_SERVER['PHP_SELF']?>?action=compose-reply-all&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>&standalone=true">reply all</a>
<a href="<?=$_SERVER['PHP_SELF']?>?action=compose-forward&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>&standalone=true">forward</a>
</div>
<hr/>
<?foreach($this->parts as $index=>$part){if($part->if_printable()){?>
<?=$part->get_presentation($this->mailbox_name,$this->key,true)?>
<hr/>
<?}}?>
<?$attachments_count=0;
reset($this->parts);
foreach($this->parts as $index=>$part){
if($part->if_attachment()){
if(!$part->if_text_multipart()) $attachments_count++;
?>
<?=$part->get_presentation($this->mailbox_name,$this->key)?>
<br/>
<?}}?>
<?if($attachments_count>2){?>
<hr/>
<a href="<?=$_SERVER['PHP_SELF']?>?action=get-all-parts&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>">
<img src="./images/mime-type/zip.gif" alt="ZIP"/> Download all attachments as zip
</a>
<?}?>
<?if(isset($this->thread) && $this->thread->has_thread()){?>
<div>
<b>Related E-mails</b><br/>
<?=$this->thread->get_presentation('preview')?>
</div>
<?}?>