We need to check for both signed or encrypted here.

Fixes sending s/mime encrypted messages to clients that support them.
Detect signed/encrypted parts below the base part also.

Seems like most clients will reject the signature when the base
part is not multipart/signed, but at least attempt it.