Verifying if an email contains a s/mime in python
<p>Is it possible, using python without os calls, to detect if an incoming email message is signed ? (Don't care about the certificate validity, I just want to know if the message contains a signed content)</p>

<p>The corresponding openssl command I'd like to reproduce is the following:</p>

<p><code>openssl smime -verify -in /tmp/mails/d4fa5d0f-2250-4acd-8d3d-14c4e9743392</code></p>

<p>I can run <code>os.system('openssl smime -verify -in /tmp/mails/d4fa5d0f-2250-4acd-8d3d-14c4e9743392')</code> but I would like to use a python lib instead if possible.</p>

<p>All the examples I have found implies that I have a public key to decode the certificate, I only want to know if the email contains a signed content or not.</p>