diff options
author | Sukhbir Singh <sukhbir@torproject.org> | 2018-01-13 00:44:14 -0500 |
---|---|---|
committer | Sukhbir Singh <sukhbir@torproject.org> | 2018-01-29 16:50:52 -0500 |
commit | 89d99387f7b72b5f629266c61c733974014cfdea (patch) | |
tree | 29ac3729f04a2e888d33df535cb677d175240ab9 /chrome/content/bitmask.js | |
parent | 3084a2f99dafa173f3d0ee4128e0a43d6ba62b3c (diff) |
[feat] Display encryption status when viewing a message
Display a notification bar in the message pane if the message was
encrypted for messages in the "Inbox" folder.
For messages in the "Sent" folder, we have placeholder code for
displaying the message state and for adding custom headers if required.
However, we need to understand how to handle the case for multiple
recipients with different encryption states since it's possible to send
encrypted messages to recipients with known keys but the same message
will be send unencrypted to recipients whose keys are not known. In such
a case we can display the message status per-recipient.
Diffstat (limited to 'chrome/content/bitmask.js')
-rw-r--r-- | chrome/content/bitmask.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/content/bitmask.js b/chrome/content/bitmask.js index 6ab87ff..e549c3e 100644 --- a/chrome/content/bitmask.js +++ b/chrome/content/bitmask.js @@ -395,6 +395,19 @@ var bitmask = function(){ }, /** + * Get message status of one email + * + * @param {string} uid The uid to get status about + * @param {string} mbox The name of the mailbox where the message is stored + * @param {string} message_id The Message-Id from the headers of the email + * + * @return {Promise<{'secured': bool}>} Returns the status of the email + */ + msg_status: function(uid, mbox, message_id) { + return call(['mail', 'msg_status', uid, mbox, message_id]); + }, + + /** * Get status on the mixnet for an address. * * @param {string} uid The uid to get status about |