Move email to mailbox-folder (in Apple Mail) -> trigger import to DT

There are tons of posts regarding email->DT. Mostly on importing at once. However I haven’t found anything on my concern:

Is it possible to push emails to (a not running) DT when they get put into a specific folder within the Mail app?

As Apple mail rules only trigger on incoming mails, this way seems to be blocked.

I’am happy for any suggestions!
I’am also open to different approaches along the way: Select email in Apple Mail and trigger import to a not running DT.
I know I could use drag’n’drop to the DT sorter. But this forces DT to be running.

Specs:
Most recent DT3 Pro, DTTG, Apple Mail

Could you describe what your goal is?

Your question to me sounds like you want to import a certain e-mail only when you perform a move action in Mail. But to what extent?

The reason I’m asking is that I think you’ve thought up a workflow to reach that goal, but it might be you can reach that goal with another workflow as well. That’s also what you’re refering to I guess with the sentence:

I understand running DT is a limitation. Why is that?

Thanks for the quick response!

Goal: I’d like to decide what email/email-attachment I push to DT when reading my mails.

My thoughts were triggering this by moving the to pre-defined foder on Apple mail. But I am open to any other way…

I run a rather old macbook with 16G ram as my main dev machine. I try to not keep other (non-work) related apps running.

Welcome @pico_prob

You’re not going to be able to ”push emails to (a not running) DT”. DEVONthink has to be running to import the emails.

@pico_prob

How about File/Save As (pick an option, I just tested “Raw Message Source”) to the DEVONthink Public Inbox Folder. Or create a PDF from the mail. I put a few there and then when DEVONthink launched later, all files were imported to the Global Inbox?

Would an adapted version of this work?

Whether many user would want it, I don’t know, but queuing e-mails in a sorter like service while DT isn’t running could be useful perhaps.

As @rmschne mentioned, the Global Inbox functions that way as it will hold data until DEVONthink is running.

@pico_prob
You can’t run mail rules based on items going into a folder in Mail. There is no criterion for that.
If you’re going to file items in a folder to sequester them for inspection, you can select them and use the mail script via the script menu in the menubar to send them to DEVONthink as needed.

The closest I get so far is:
Drag’n’Drop email or its attachment to the DT inbox in the finder.

Does anybody know some shortcut for this? A quick look into Apple Automator looked promising: There’s an element to save mail attachments to disk. However, I couldn’t find anything on how to save the mail (ie text) itself… Any hints?
Is there a keyboard shortcut (3rd party?) to trigger an automator script? I guess I can google this easily, but any well-proven solutions?
I’ll look into this tomorrow or on the weekend and keep you posted

Not tested but you could try to use Mail‘s menu item „Apply Rule“ (or something like that). If that works assign a shortcut to it.

I saw the item, but haven’t really pursued that, yet:

  • Working with mail rules requries DT to be running.
  • It looks like you can’t select the rule. Hence, you can’t decide if you want the whole mai, or just the attachment.