Hm. My problem is: I’ve inherited a DTPO database which contains i.a. thousands of emails. My job is to extract all the attached files.
Can I export all of the emails? Should I export them as UNIX mailbox? And can I then reimport them as messages with the attachments in separated folders?
One possibility would indeed be to export all messages as a Unix mailbox, to import this mailbox into Apple Mail and to use the script “Add message(s) and attachments to DEVONthink” (see scripts menu extra) afterwards.
There are almost always multiple possibilities but that’s probably the easiest one The second one coming to my mind would be to convert all emails to rich text and to write a script that scans the RTFD packages for attachments and imports the found attachments. Doesn’t sound that easy, IMHO.