<%loop results%>
Message Details <%set iclose = 1%> <%set ipreview = 1%> <%set isend = 1%> <%set iedit = 1%> <%set modify = 1%> <%include msg_include_icons.html%>

<%if msg_charset%> <%endif%> <%GList::HTML::generate_attachments%> <%if attachments%> <%endif%> <%if msg_content_text%> <%endif%> <%if msg_content_html%> <%endif%>
Message Mode [ <%if msg_mode eq 'html'%>HTML <%elsif msg_mode eq 'multi'%>Text and HTML <%else%>Text Only<%endif%> ]
Charset <%msg_charset%>
Subject <%msg_subject%>
From <%if msg_from_name%>"<%msg_from_name%>" <<%msg_from_email%>><%else%><%msg_from_email%><%endif%>
Reply To <%msg_reply_to%>
Return-Path <%msg_bounce_email%>
Status <%ifnot msg_status%>Draft<%elsif msg_status == 1%>Sent<%endif%>
Created <%GList::HTML::date_get('msg_created', '%mm%-%dd%-%yyyy% %hh%:%MM%:%ss%')%> <%if usr_email ne $msg_user_id_fk%>, by <%msg_user_id_fk%><%endif%>
Attachments <%loop attachments%> <%endloop%>
<%att_file_name%> (<%GList::Tools::friendly_size($att_file_size)%>) view download
<%if msg_mode eq 'multi' or msg_mode eq 'html'%>Text Message
<%endif%>
<%GList::HTML::html_unescape($msg_content_text)%>
<%if msg_mode eq 'multi' or msg_mode eq 'html'%>HTML Message
<%endif%>
<%msg_content_html%>

<%endloop%>