GPGTools/GPGMail — pull request #8 by idodeclare (2012-03-06 14:37:42+00:00)
Title: Fix event storms in MADecodeWithContext and MAVerifySignature

Hi. This contribution combats the event storms in MimePart decodeWithContext
and verifySignature.

- using a class, MimePartResult, to collect work done in decrypting
and then to write in key-values before returning from MADecodeWithContext.
- remove an unnecessary set of MimeSigned in MAVerifySignature
- some key-values are used as cache markers (e.g., PGPDecryptedBody,
PGPVerified), so write to those first before other properties so
that any triggered re-runs almost certainly get cached results