{if $has_right_opentasks}
    <ul>
        {include file="r_basic/functionmenuhrefitem.tpl" title=$i.inoutbox_send_opentask icon="opentasks"
            action={site_url url="start/open/opentasks/index/`$xjxcookie`/add_for_inbox/`$inbox->id`"}}
    </ul>
{/if}
{if isset($inbox->msg_file_path) && (strtolower(substr($inbox->msg_file_path, -4)) === '.eml' || strtolower(substr($inbox->msg_file_path, -8)) === '.eml.zip')}
    <ul>
        {include file="r_basic/functionmenuitem.tpl" title=$i.inoutbox_reply
            icon="move_left" action="usComm.sendmail_start('inbox', `$inbox->id`, 1)"}
    </ul>
    <ul>
        {include file="r_basic/functionmenuitem.tpl" title=$i.inoutbox_forward
            icon="move_right" action="usComm.sendmail_start('inbox', `$inbox->id`, 2)"}
    </ul>  
{/if}            
