On iOS, how do you get emails into DT?

ProtonMail’s Mac client has no AppleScript support so no this is not possible.

any news on this matter? if I could only use the Protonmail Mac client to import mail into DT without the use of Bridge

With some finger acrobatics you can select them in Apple Mail, lift them up, switch apps, and drop them into DEVONthink To Go.

In that case you still need Proton Bridge

I mean directly from Protonmail app on the mac to DT

You need to talk to the ProtonMail team about this. We don’t develop their app and inter-application communication is the responsibility of an application’s developer.

I have not read the whole thread so maybe I do not understand your full problem. But in the protonmail app you can easily export any message as an EML, which can directly be imported into DTP. But if you need a full import of the whole inbox this indeed is not possible as not supported by protonmail as far as I know

What’s wrong with using Bridge?

from apple’s mail client on the iphone, i can’t tap print, zoom out to get the pdf, the. use the share sheet to add to DTTG. works perfectly—except: it kills all links. the retain link formatting, but the hypertext link is removed and all i get is the text.

i can also tap and hold, and switch from mail to DTTG, the green circle with + appears, but dropping it doesn’t add the email to DTTG, and if i go into the app and drop it on the inbox, same thing: not added.

am i doing something wrong? iOS all apps are up to date, and i’m using an iphone 16 pro max

1 Like

I have an applescript set up on my Mac Mini
so I just need to flag the email (move the email to a Devonthink mail folder)

1 Like

What version of DEVONthink To Go and iOS are you running?

very nice. i don’t have an always-on desktop or laptop but perhaps that’s what i’ll have to do and know that it won’t happen till the next morning. or just move them manually when i am using my laptop.

Just tried tap, hold and switch to DTTG, it worked without a beat. iPhone 14 Pro Max, IOS 18.5

Could you elaborate on your solution? Where do you flag the email and what happens then? Possibly you can even share the script?

I can label a mail in Proton Mail.

In Apple mail these mails will then appear in the Label folder. But as it seems, there is no mail rule condition for arriving in a certain folder.

I am looking for a way to label a mail in the iOS Proton Mail app. This is then synced to the always on Mac with the Proton Bridge running, where the mail rule would then import this mail to DEVONthink.

My solution is based on the Apple Mail app; accessed with a Mac and iPad

Devonthink has already provided the Applescript - Add message(s) & attachments to DEVONthink.scpt
so my requirement was to identify the emails to be imported so the Mac script can do it’s thing
My trigger solution was to create a Devonthink mailbox folder within the Mail app
I simply move email from the Mail Inbox folder to the Mail Devonthink folder
using either my Mac’s or iPad’s mail app

In Devonthink, I created a Reminder script, running hourly
The script is listed below
and retrieves the emails from the Devonthink mailbox folder
and make’s use of the Devonthink script to do the actual import

Click to see script
on performReminder(theTemplate)
	my mailToDevonthink()
end performReminder

on mailToDevonthink()
	set MailScript to (load script "/Users/DTLow_1/Library/Scripts/Applications/Mail/Add message(s) & attachments to DEVONthink.scpt")
	tell application id "DNtp" to set theGroup to preferred import destination
	
	tell application "Mail"
		
		set theFolder to (POSIX path of (path to temporary items))
		set TheMessages to (messages of mailbox "Devonthink" of account "iCloud")
		repeat with theMessage in TheMessages
			MailScript's imPortMessage(theMessage, theFolder, theGroup)
			delete theMessage
		end repeat
		
	end tell
	
end mailToDevonthink

2 Likes

Questions from me - without any scripting knowledge: would such a script also work with flagging an email in ios and/or macos apple mail with a certain flag color (e.g all mails with yellow flag are imported into DEVONthink)? how does the script handle already imported email? does apple mail have to be opened on my mac in order that such a script being able to run and import the flagged emails? Thank you so much!

I’m guessing yes
The criteria I used was: messages of mailbox “Devonthink” of account “iCloud”
You can use different criteria such as: messages of … whose flag index is 3

>how does the script handle already imported email?

My understanding is that Devonthink ignores duplicate imports

>does apple mail have to be opened on my mac in order that such a script being able to run and import

The script will open the Mail app

1 Like

Thank you for your additional informations. I created a script, changed it to my needs and wanted to then schedule it to run hourly.

But, turns out I have not found out how to achieve this. Do I have to create some sort of reminder or a rule in DEVONthink so be able to schedule it for an hourly run?

Would appreciate your some additional information on how to schedule the script and where in the menu I can find the option to do so. Just found the reminder section for a database item, but I assume that is not the right place to achieve this.

Create a note, then access Annotations under the Info inspector