{*+********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.1 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ************************************************************************************} {strip}
{if $FOLDER->mails()}{$FOLDER->pageInfo()}   {/if}
{if $FOLDER->mails()}
{assign var=IS_SENT_FOLDER value=$FOLDER->isSentFolder()} {foreach item=MAIL from=$FOLDER->mails()} {if $MAIL->isRead()} {assign var=IS_READ value=1} {else} {assign var=IS_READ value=0} {/if}
{assign var=DISPLAY_NAME value=$MAIL->from(33)} {if $IS_SENT_FOLDER} {assign var=DISPLAY_NAME value=$MAIL->to(33)} {/if} {assign var=SUBJECT value=$MAIL->subject()} {if mb_strlen($SUBJECT, 'UTF-8') > 33} {assign var=SUBJECT value=mb_substr($MAIL->subject(), 0, 30, 'UTF-8')} {/if} {if $IS_READ} {strip_tags($DISPLAY_NAME)}
{strip_tags($SUBJECT)} {else} {strip_tags($DISPLAY_NAME)}
{strip_tags($SUBJECT)}
{/if}
{assign var=ATTACHMENT value=$MAIL->attachments()} {assign var=INLINE_ATTCH value=$MAIL->inlineAttachments()} {assign var=ATTCHMENT_COUNT value=(count($ATTACHMENT) - count($INLINE_ATTCH))} {if $ATTCHMENT_COUNT}   {/if} {Vtiger_Util_Helper::formatDateDiffInStrings(date('Y-m-d H:i:s', strtotime($MAIL->_date)))}
{/foreach}
{else}
{vtranslate('LBL_No_Mails_Found',$MODULE)}
{/if} {/strip}