Sending mail to DevonThink not working with macOS Sonoma and DVTP 3.9.3

I agree with that… but my tests are done with both new imported message and already imported messages. It’s the same result. When I wrote “n messages” n depends on how many messages I try to import, it could be 1 or 2 or 10.

I have also tried to import mail from sidebar with archive feature but it’s too slow and not possible to automatise or I don’t know how to do.

Welcome @othomas

We dont control Apple Mail Rules or its scripting dictionary, so bear that in mind.

Are you getting the notice of a failure after the mailbox rebuild in Mail?

I get no notice of failure after the mailbox rebuild.

To be more precise on my Apple mail rule, it is very simple :
When a message is received, do the 3 following actions :
1- Color the message in yellow
2- Move to mail folder “Imported in DT”
3- Run the script “Add message(s) to Devonthink”

The 2 first steps are well executed → I can found the messages in yellow in the mail folder “Imported in DT” but sometimes the messages are imported in DT and sometimes not.

Drag’n’Drop directly to inbox in DVTP : I have an error message in Log console → Import of n messages failed.

I have found importing emails via the sorter doesn’t work anymore. Frustrating.
.

Is DEVONthink allowed to automate Mail? Does a reboot fix this?

The following workaround is doing it for me:

  1. Goto Mail → Properties or Settings → Rules

  2. Create a new mail rule for all mails.

  3. Choose execute apple scripts as action

  4. Select Mail-Rule - Import Mail to DEVONthink

  5. Save Rule

You can now select the desired mails, right click on it and choose apply rule (or similar).

All selected mail will be imported to Devonthink.

This script can also be found in „users/yourlogin/Library/Application Scripts/com.apple.mail“

Good luck.

1 Like

I followed your steps, and both selected and non-selected emails are moved to DEVONthink. In your new rule, step 2 says “Create a new mail rule for all mails.” Does your rule start with If ANY of the following conditions are met: EVERY MESSAGE"? I think when I select a message in the Mail app and tell it to run the rule, it is running the rule (i.e., moving to DEVONthink) ALL emails and not just the selected emails.

I have attached a link to a short video which shows how it works for me. Perhaps it helps.

If not: I tried my best :wink:

1 Like

Thanks. Is this what your rule in Mail looks like:

1 Like

Yes, that’s correct. I played around a little bit today and found that there is still a disadvantage in the solution: You have to disable the rule in common, and enable it when you want to distribute your mails to DT. If you have this rule activated all the time it will probably distribute the mail as soon as it arrives in your mailbox. I’m still looking to improve this. Maybe someone will find a better solution.

Why would you have to toggle it on and off? Just be more specific in the criteria. I would bet money you don’t want every message to be sent to DEVONthink. So your mail rule should be constructed with specific criteria.

No, I don’t want to import every massage. That’s right. But this is the reason why I have to toggle on or off the rule. I want to import only selected mails. This can’t be done by rule criteria.

I want to import only selected mails.

Then why employ a mail rule at all when you can merely drag and drop emails into DEVONthink directly?

Drag and drop to DT is no more working in Sonoma. My solution is just a workaround for this. Did you hear about importing mails to DT in Sonoma? I appreciate any solution to import mails from Apple Mail into DT in Sonoma. Please have a look at the topics title :wink:

And did you rebuild the mailbox as I suggested in the thread?

Yes, I did. Honestly. But DT still sais: “import of 1 message failed”.

I appreciate drjaykay’s efforts here, but I don’t want to have a rule I have to toggle off and on so frequently. I can still drag and drop individual emails I’ve selected (and multiple emails I’ve selected) onto the DEVONthink menu icon (then down into the dropdown menu to the Inbox) and DEVONthink imports those for me. I hope to see others come up with new and interesting ways to do this as well.

Drag it to the desktop then DEVONthink.
And if this is only for one email, then disregard it.

I just set up a new machine on Sonoma, and even though I have followed all the steps suggested here, I still don’t have the ability to drag an email from DT3 to either the Inbox alias or to the app dock icon. I did find the Automation setting in Settings and made sure it was switched on, and rebooted - still no luck. In fact, I can’t drag and drop an email message to ANYWHERE - not even another folder in finder.

I realize this is out of scope for the DT3 forum, but hopefully someone has seen this issue before and has some advice. Thanks.

  • Does DEVONthink have Full Disk Access in System Settings > Privacy & Security?

  • Is anything reported in DEVONthink’s Window > Log?