Forward emails to Devonthink

True. I don’t think it’s in the cards, but I still really want a first party solution :crossed_fingers:

By using a dedicated subject or email address this should be doable via rules in Apple Mail and AppleScript.

1 Like

I know I can do this in apple mail. But that requires my Mac to process the mail. It can’t be done from my iOS device.

Despite the hype, automation in iOS is simple and very limited compared to a Mac.

True. Unless you involve a cloud solution.

You can somewhat replicate the Mail-to-Evernote experience on your Mac:

  1. In the Contacts app set up a new contact (click “Company” and give the “Company name” something like “2Devonthink” or “2DT”).

  2. In the email address field, let’s say your email address is “”, just add “+DT” or “+Devonthink” after the name before the “@”. So in this example it would be “”. This is a little known fact that the “+” and anything after it up to the “@” is ignored by mail servers.

  3. In Mail on your MacOS machine create a rule:
    A. If “To” is equal to “”;
    B. “Run Applescript” “Mail Rule - Add messages to DEVONthink” (this script is part of the DT3 add-ons);
    C. “Move message” to trash.

So when you are out and about on your iPhone, just forward the message to the contact you had set up like you would to your mail-to-Evernote address. The message will be processed by Mail if and when it is running and you should get your email imported into the DT3 Inbox.

From there you can create smart rules to file the imported mail automatically. Of course, you could vary the “+your-text-here” part in the name and perhaps use a different one for each subject or database (like an EN Notebook) or tag. Or combine it with text that you add before forwarding to aid filing.


Very very interesting -thanks

Is there a way to do that as a wildcard so that any email address with +DT in it goes to a catchall inbox in DT3?

There’s no need to use “a wildcard” since the Mail Rule has a contains option.

1 Like

I use MailMate as my email client and it has an Add To DEVONthink command which I use many times a day. I have started experimenting with including it in a mail rule “match this email and add to dt” which seems to work in my limited experiment.

Brihi, you said you drag and drop your emails to DT3. I was wondering how you do that. If I drag an email from Apple mail to the DT3 icon in my dock, all I see in DT3 is the subject of the email, not the email itself. Do you drag and drop a different way? Thanks.

so excited this worked really well. Thank you for posting.

Are you using the Pro edition of DT3?

I have the most current version of Devonthink3.

Note that the drag and drop feature has worked on all versions of DevonThink that I have had in the past.

Any chance you can share how you do this specifically?
I’m not too familiar with rules or automation in general and I’m having a hard time with a specific process I’d like to happen, namely, automatically sending every Mailmate email I receiver from one specific sender to my DT global inbox. Any help would be appreciated.

I have attached a picture of the screen where I created the rule for one particular email. I am not an expert on Mailmate rules but under the selector (Subject>Body) there is a long menu of items and I suspect that you could use one of them to get the messages that you want. I didn’t see an “All Messages” but it might be there hiding or you might be able to contrive one.

Thanks so much. One more quick question–to the right of “Run Command,” what is the command you’re running? It gets cut off after “Devonthink Pro - Add…”

Actually it is pretty much as you see it. But you don’t have to actually type it, it is under the pull down. It is the only DevonThink command that is built in – Add… (to Inbox). See the attached picture.

Just remembered – you have to enable the bundle in the MailMate preferences:

1 Like

Did you get it working?

Hi, Fillmore, thanks for checking.
I did, but after a lot of fiddling, I set it up slightly different from yours.
Screen Shot 2021-12-08 at 8.42.29 AM
This sends copies of charge alerts from two different credit cards (both with same company, so same sender address) to Devonthink, where I set up rules to have emails in the Inbox containing the last four digits of each credit card forward to their own group (folder). From there I can easily add the charges in my accounting system. Big change for me–going from waiting 3-6 months to reconcile credit cards to (hopefully) updating the registers a couple times a week.
One slight snafu I couldn’t work out is that the emails are showing up in DT named with a random string of numbers. Not a big deal but it’d be nice if they were named with the subject line (as is the case when I use Mailmate’s command to add a random email to DT).
Thanks again for your help, Fillmore.

1 Like