Excellent script @rkaplan! I was thinking of something similar and didn’t find a way to get DT to automatically import mail from a specific folder in my account, so I rolled my own solution too: https://discourse.devontechnologies.com/t/auto-import-new-mail-to-devonthink