Deleting attachments kills messages
When you delete attachments from a message then this plugins deletes all attachments from the message. The purpose is minimazing message size and retain text parts. But when a message is S/MIME signed, then one of attachments is signature and the plugin deletes it too. This would not be a problem if the plugin do not reorganize message parts. The plugin leaves a stub of the deleted signature but moves it to the beginning of the message. In effect the message from original structure:
multipart/signed {
multipart/alternative {
text/plain
text/html
}
application/pkcs7-signature
}
transforms to
multipart/signed {
application/pkcs7-signature (stub of deleted signature)
multipart/alternative {
text/plain
text/html
}
}
and Thunderbird cannot show text of the message - it shows empty page. But when the stub (truncated signature) is the last part of multipart/signed structure then Thunderbird shows text part correctly but do not show the message is signed (as expected). The plugin must not reorganize message structure. As a minimum it should retain multipart/signed structure.