PGP/MIME signature verification displayed in wrong message window
OpenPGP addon for Mozilla Thunderbird
Brought to you by:
pbrunschwig
PGP/MIME encrypted messages are decrypted when they are received, and the corresponding signature verification ribbon displayed on the message window, even if a different message is being viewed at the time.
Oops, ignore that bit about PGP/MIME vs inline, it happens with both (I was confused because I forgot to rebuild the xpi after reverting my failed attempt to fix it. doh).
Diff:
Attaching a log from when this happens.
When I subsequently click to view the incoming message, I get an almost identical log, but these two lines are different:
2014-02-26 20:57:43.243 [DEBUG] enigmailMsgHdrViewOverlay.js: EnigMimeHeaderSink.updateSecurityStatus: uriSpec=imap-message://john.morahan%40gmail.com@imap.googlemail.com/INBOX#28107
2014-02-26 20:57:43.243 [DEBUG] enigmailMsgHdrViewOverlay.js: EnigMimeHeaderSink.updateSecurityStatus: msgUriSpec=imap-message://john.morahan%40gmail.com@imap.googlemail.com/INBOX#28107
Hmm.
So I originally found this in 1.5.2, then checked out master from git (which reported as 1.6.0) in the hope it would be fixed. Now, I think I've found the source of the problem in this branch, but the code in question - commit 9b4d9a9c96b0c0a992ee4df35939e13480a31926 - was only committed on Feb 22 2014 so I have no idea what was happening in 1.5.2 ?!?!
But anyways. Reading the mozilla bug 966807 referenced in that commit, the behaviour described there does not match what's implemented. Jonathan Protzenko suggests an obviously wrong change and then suggests fixing it by adding "< 0". However it would seem that you also need to remove the "!".
to save you looking it up, https://bugzilla.mozilla.org/show_bug.cgi?id=966807
Diff:
I can't reproduce the bug in the actual 1.6 release (unsurprisingly, in light of the above). So I guess there's no reason to keep this bug private.
I can no longer reproduce it with inline PGP either. I'm now guessing I was confused by Gmail's "All Mail" folder re-downloading the original PGP/MIME message while I wasn't paying close attention.
Thanks for the patch.