1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-29 20:32:15 -05:00

add encrypted flag to messages

This commit is contained in:
Tankred Hase 2013-12-04 18:58:53 +01:00
parent 3cbae34f7b
commit f6b15ac151
2 changed files with 3 additions and 1 deletions

View File

@ -530,6 +530,8 @@ define(function(require) {
decrypted = err.errMsg;
}
// set encrypted flag
email.encrypted = true;
setBodyAndContinue(decrypted);
});
});

View File

@ -6,7 +6,7 @@
<div class="view-read" ng-controller="ReadCtrl">
<div class="headers">
<p class="subject" ng-click="state.read.toggle(false)">{{(state.mailList.selected.subject || 'No subject') + ((state.mailList.selected.from[0].secure === false) ? ' (unencrypted)' : '')}}</p>
<p class="subject" ng-click="state.read.toggle(false)">{{(state.mailList.selected.subject || 'No subject') + ((!state.mailList.selected.encrypted) ? ' (not encrypted)' : '')}}</p>
<p class="date">{{state.mailList.selected.sentDate | date:'EEEE, MMM d, yyyy h:mm a'}}</p>
<p class="address">
From: <span ng-repeat="u in state.mailList.selected.from" class="label" ng-class="{'label-primary': u.secure === false}" data-icon-append="{{(u.secure === false) ? '&#xe001;' : (u.secure === true) ? '&#xe009;' : ''}}" ng-mouseover="getFingerprint(u.address)" popover="#fingerprint-info">{{u.name || u.address}}</span>