<%= message.subject %>
<%= message.from %> → <%= message.to %>
<%= message.date %> ⌚ <%= message.time %>
<% _.each( message.tags, function( tag ){ %> <%= tag %> <% }); %>
<% _.each(message.body, function(part){ %> <% var type = part.type.split('/')[0]; %> <% if(type === 'text') { %>

<%= part.payload %>

<% } else if(type === 'image') { %> <% }else { %> <%= part.filename %> <% } %> <% }); %>