BUG: emacs: fcc duplicates messages with variant bodies due to mml security
I'm concerned that notmuch-emacs is causing variant messages of
encrypted/signed messages to be generated.
In particular, if notmuch-fcc-dirs is not nil, two variants of the
message bodies will be created: one will be sent through "notmuch
insert" and the other will be sent to sendmail.
the mml security modes (e.g. "#secure method=pgpmime mode=sign" (in
angle brackets)) take place after this bifurcation.
The result for a signed message is:
* the message sent to "notmuch insert" has one cryptographic signature
* the message sent to sendmail has a different cryptographic
signature, in particular if it is made more than 1 second later
(some signature algorithms will produce identical signatures if made
in the same second)
You can try this out by:
0) put ignore-cache-for-signing in ~/.gnupg/gpg-agent.conf
1) run "gpgconf --kill gpg-agent" to ensure the config is re-read
2) send yourself a signed message with message-id $mid.
3) Pull it back in however you receive mail, and then: