Be more careful about treating smime parts as main message
The existing code appears is needed to handle smime messages sent as
application/octet-stream. This handling makes sense, if the part
represents the complete message, or is an inline content part, but
not if it is a genuine attachment. This patch tries to differentiate
better between the two cases.