Emails reçus

<% if(emails && emails.length > 0) { %>
<% emails.forEach(email => { %> <% }); %>
Date De Sujet Statut Actions
<%= new Date(email.receivedAt).toLocaleString() %> <%= email.from %> <%= email.subject %> <% if(email.read) { %> Lu <% } else { %> Non lu <% } %>
<% } else { %>
Aucun email trouvé

<% if (filter === 'true') { %> Il n'y a pas d'emails lus. <% } else if (filter === 'false') { %> Il n'y a pas d'emails non lus. <% } else { %> Les emails reçus apparaîtront ici. <% } %>

<% } %>