Jonas Meurer wrote:
at the very start of parse_structure(), parse the message/mime_part for encrypted/signed content (both mime and inline), if appropriative verify signature or decrypt encrypted data, and send the result back to a new instance of parse_structure() recursively. afterwards stop the functions.
Just a thought. Attach a few samples of simple messages, crypted (with decrypted version) and signed, to the Wiki page, please. This would be simpler to understand without reading RFCs and installing encryption software.