axllent/imap-scrub

Add support for signed messages

Opened this issue · 1 comments

Hi,Ralf,
Great tool!

Trying it on my old messages, I discovered it also removes digital signatures -
Which probably isn't what one would want...
Chances are, this is an unintended side-effect?

After quickly reading RFC 8551[1], it seems that in order to support signed messages, you just have to avoid removing attachments named "smime.p7m", "smime.p7s", or "smime.p7z" by default.

Maybe the option could be named as follows?
keep digital signatures (default: true)

[1]: S/MIME Version 4.0 Specification: https://www.rfc-editor.org/rfc/rfc8551

UPDATE:
Relevant RFC:
S/MIME Version 4.0 Specification: https://www.rfc-editor.org/rfc/rfc8551