msgno;
$msg_ob = new Webmails($MailBox->mbox,$mails[$start_message]->msgno);
// TODO: scan the current db vtiger_tables to find a
// matching email address that will make a good
// candidate for record_id
// this module will also need to be able to associate to any entity type
$record_id='';
if($mails[$start_message]->subject=="")
$mails[$start_message]->subject="(No Subject)";
// Let's pre-build our URL parameters since it's too much of a pain not to
$detailParams = 'record='.$num.'&mailbox='.$mailbox.'&mailid='.$num.'&parenttab=My Home Page';
$displayed_msgs++;
if ($mails[$start_message]->deleted && !$show_hidden)
{
$flags = "
';
}
else
{
//IMPORTANT - This UTF-8 conversion has been done in ListView.php so no need to do again here
//Added to shown the original UTF-8 characters - Mickie - 30-11-06 - Starts
//we can use the option 1 or option 2
//Option 1 - Starts
/*
$translated_subject = imap_mime_header_decode($mails[$start_message]->subject);
for($i=0;$icharset != 'default')
{
$tmp .= $translated_subject[$i]->text;
$mails[$start_message]->subject = utf8_decode($tmp);//$tmp;
}
}
//Option 1 - Ends
*/
//Option 2 - Starts
//$mails[$start_message]->subject = utf8_decode(imap_utf8($mails[$start_message]->subject));//imap_utf8($mails[$start_message]->subject);
//Option 2 - Ends
//Added to shown the original UTF-8 characters - Mickie - 30-11-06 - Ends
$listview_entries[$num][] = '