As Apple removed the support of Mail-Plugins and importing via the sidebar without the plugin won’t currently preserve the mailbox structure, I tried to use a modified version of the the “Add mailbox(es) to DEVONthink.scpt” Script, which allows me to archive a whole account.
I could’nt really find anything useful here or in the DT3s Script Editor Library about how to check for an already imported mail.
The non-plugin mail-import in the sidebar also uses scripting as per documentation and supports that already imported mails are not imported again.
So generally speaking:
How do i check if importing would produce a duplicate, is there something like ‘create record only if not duplicate’.
How does the scripts from the import-sidebar handle this?
All this without importing first, check then if there are duplicates and delete again.
I’m aware of ‘exists record with file’ (or ‘with path’), but afaik that’s the path/filename in the database, which won’t help here.
Thank you very much.