I only need to import a few important emails each day. I use apple mail but have it connected to all my gmail, imap and MS exchange email accounts. It is where I do all my mail.
I can use the apple script(s) within apple mail to transfer emails into DT - works fine thank you. (I am on Sonoma so the old plugin is defunct).
Sometimes I would like to check accounts in case I have missed one. I have tried using the import tab (on left hand navigation), but for my accounts I get a spinning ball and usually give up after a waiting a few minutes (I am using DT4 but this also happened in DT3)
Is there some setting I should have here to get the mail account(s) to load quickly? Do I have to just wait it out? Once I have waited it out, will future loads be quick? Any advice gladly received - I have searched the forum but couldn’t find anything similar.
In the inboxes of each very few (I do inbox zero). In the archive folders hundreds. Apple Mail itself is instant at displaying the archive which is why I am puzzled DT takes so long.
That’s my case, too. I import emails to relevant groups for projects and household topics. I do this on the desktop. For this, I have a shortcut in the Mac menubar.
The shortcut does one thing – it runs this script created by @cgrunenberg / @BLUEFROG
-- Import selected Mail messages to DEVONthink with message link.
-- Created by Christian Grunenberg on Mon Apr 19 2004.
-- Modified by BLUEFROG/Jim Neumann Tue Jan 24 2023
-- Copyright (c) 2004-2023. All rights reserved.
(* Uses the email's message ID as the imported file's URL instead of mailto: *)
-- this string is used when the message subject is empty
property pNoSubjectString : "(no subject)"
tell application "Mail"
try
tell application id "DNtp"
if not (exists current database) then error "No database is in use."
set theGroup to preferred import destination
end tell
set theSelection to the selection
if the length of theSelection is less than 1 then error "One or more messages must be selected."
repeat with theMessage in theSelection
my importMessage(theMessage, theGroup)
end repeat
on error error_message number error_number
if error_number is not -128 then display alert "Mail" message error_message as warning
end try
end tell
on importMessage(theMessage, theGroup)
tell application "Mail"
try
tell theMessage
set {theDateReceived, theDateSent, theSender, theSubject, theSource, theReadFlag, theID} to {the date received, the date sent, the sender, subject, the source, the read status, message id}
end tell
set msgID to "message://%3c" & theID & "%3e"
if theSubject is equal to "" then set theSubject to pNoSubjectString
tell application id "DNtp"
set newRecord to (create record with {name:theSubject & ".eml", type:unknown, creation date:theDateSent, modification date:theDateReceived, source:(theSource as string), unread:(not theReadFlag)} in theGroup)
set URL of newRecord to msgID -- Set the URL here
end tell
on error error_message number error_number
if error_number is not -128 then display alert "Mail" message error_message as warning
end try
end tell
end importMessage
Your emails aren’t all being stored on your Mac. IMAP servers hold the emails.
When the application is stalled, do a Spotlight search for Activity Monitor . Select our application in the list of processes - it should show “(Not Responding)” and the name in red - and press Command-Option-S to run a sample on it. When the sample window opens, press the Save button and save it to your Desktop. Open a support ticket and attach this text file so we can inspect it.
An update. I installed Legacy Outlook and the mail import/archive mailbox with Outlook works fast (Archive folder of >1000 items loads in a second or so). The problem appears to be with Apple Mail app on my MacBook. (Ticket has been raised)
I have switched to Outlook client for MacOS for now and all works fine.