Quit DEVONthink + delete the plugin in Finder, from folder ~/Library/Mail/Bundles
Reboot my MacBook
Re-Install the plugin from DEVONthink and enable the plugin from Mail settings (I choose “Allow” during plugin activation).
Ensure that all “DEVONthink” permissions are enabled in System Settings > Privacy: Location, Calendar, Contacts, Reminders, Camera, Microphone, Accessibility, Full-Disk Access, Files and Folders, Screen recording, Automation – all DEVONthink entries are enabled
Reboot again, just to be sure
Start Mail → ERROR
No matter what I do, I cannot get the plugin to work.
I have enabled error console to log warnings during mail startup, and I found the following entries that are related to the plugin:
System Policy: Mail(3034) deny(1) file-read-metadata /Users/philipp/Library/Application Support/Mail/Plug-ins/Bundles/Users/philipp/Library/Mail/Bundles/DEVONthink_BigSur.mailbundle
Plugin compatibility check failed for DEVONthink_BigSur.mailbundle. The plugin's Info.plist must have a Supported12.1PluginCompatibilityUUIDs key whose value is an array of strings that contains the compatibility UUIDs for the supported versions of Mail. The compatibility UUID value is found in the PluginCompatibilityUUID key of Mail's Info.plist
...
bundleRecordWithBundleIdentifier failed for com.apple.syncdefaultsd: Error Domain=NSOSStatusErrorDomain Code=-10814 "kLSApplicationNotFoundErr: E.g. no application claims the file" UserInfo={_LSFunction=+[LSBundleRecord bundleRecordWithBundleIdentifier:allowPlaceholder:error:], _LSLine=150, NSUnderlyingError=0x7f83270ba210 {Error Domain=NSOSStatusErrorDomain Code=-10814 "Unable to find this application extension record in the Launch Services database." UserInfo={NSDebugDescription=Unable to find this application extension record in the Launch Services database., _LSLine=645, _LSFunction=_LSPluginFindWithInfo}}}
-[TCCDAccessIdentity initWithMessage:]: self.bundle=0x0, bundle:(null); for: com.apple.syncdefaultsd with url: (null)
Judging from the error message, the problem is caused by some missing or incorrect values in a .plist file, but I’m not very familiar with those files. I’m not even certain, which .plist file is causing the problem. Do you have any suggestions on what could resolve the issue?
delete the bundle from the path quoted in the log in your post (/Users/philipp/Library/Application Support/Mail/Plug-ins/Bundles/Users/philipp/Library/Mail/Bundles/DEVONthink_BigSur.mailbundle)
delete the bundle from /Users/philipp/Library/Mail/Bundles
Reboot
Open DT and reinstall the plugin, observing which plugin version is being offered (it should be 4.0.5)
Open Mail
Activate the plugin in Mail
Come back here and say thank you or that was no good
My assumption is that for some reason the bundle in that mad long path is not being overwritten when you reinstall, thus my suggestion you remove it manually.
Have you looked in DT to see if you can import emails from there in the email window? I’m asking because I’m getting an error message, but it is actually still working if I import an email within DT, so I ignored it
If I follow Application Support/Mail/Plug-ins/Bundles/Library instead of /Bundles I find GPGMailLoader_6.mailbundle. But following /Bundles/Users/USERNAME/Library/Mail/Bundles/ leads only to Properties.plist.
M1 or Intel Mac? And could you please select Mail.app in the Finder, choose Show Package Contents in the contextual menu and send the file Contents > Info.plist from the package to cgrunenberg - at - devon-technologies.com? Thanks!
MacOS Monterey 12.1 with Apple Mail 15.0 / Intel MacBook
DEVONthink 3.8
I cannot see a version number of the plug-in (and also, it’s the only Mail plug-in I’m using)
Update:
I found that the folder /Users/philipp/Library/Application Support/Mail/Plug-ins/Bundles/Users/philipp/ had a wrong owner. This was the problem, apparently. Here’s how I fixed the problem:
Quit Mail
Rename (or delete) the folder /Users/MYUSER/Library/Application Support/Mail/Plug-ins/Bundles/Users/MYUSER/
Delete the file /Users/MYUSER/Library/Mail/Bundles/DEVONthink_BigSur.mailbundle
Open Mail and check the settings to ensure the plugin is really deleted
In DEVONthink: Open the “Install additional modules” menu item and uncheck all items and click “Install” (not sure if needed)
Quit DEVONthink
Quit Mail
Start DEVONthink, and install the Mail Plugin.
Start Mail, go to Settings and enable the plugin. Grant all permissions.
Here, I’ve checked if the folder from step 2 above was re-created again with correct permissions
Now I’ve hit the “Apply and restart Mail” button to enable the plugin
Thank you! Version 4.0.5 of the plug-in should be indeed compatible. Please check the owner of the folder mentioned by @philippstr - is it the right one?
That explains why the plugin wasn’t being overwritten; out of interest: did you try deleting the mailbundle from there, or did you discover (and solve) the ownership problem beforehand?
Step 5 of your instructions probably isn’t required.