Detect rtfd inline attachments vs non-inline attachments?

I’ve created a workaround when importing e-mail attachments to use Python for this. See here for the script used: Separate imported e-mail attachments for better search V2