This processes existing email for inline attachments and adds them to the attachments table, doing the same for new mail as it arrives.