Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin UUID support for MacOS 13 and Mail 16.0 #158

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pawisoon
Copy link

Mail app Version 16.0 (3731.200.110.1.12)
Closes #157

Mail app Version 16.0 (3731.200.110.1.12)
@bruvv
Copy link

bruvv commented Nov 5, 2022

Does not work for me with mail version Version 16.0 (3731.200.110.1.12)
What I did

  1. Turn off mail + openhaystack
  2. Remove: ~/Library/Mail/Bundles/OpenHaystackMail.mailbundle and ~/Library/Application\ Support/Mail/Plug-ins/*
  3. Edit: /Applications/OpenHaystack.app/Contents/Resources/OpenHaystackMail.mailbundle/Contents/info.plist to match what is in your PR (also verified that I have the same UUID: 890E3F5B-9490-4828-8F3F-B6561E513FCC using: /System/Applications/Mail.app/Contents/Info.plist)
  4. Turn on openhaystack, it will ask to install the plugin, install it in: /Users/username/Library/Mail/Bundles/
  5. it will open mail, close it
  6. Codesign it: sudo codesign -f -s - ~/Library/Mail/Bundles/OpenHaystackMail.mailbundle
  7. Disable gatekeeper sudo spctl --master-disable
  8. Open mail and enable plugin
  9. Allow access:
    image
  10. Mail will ask to restart
  11. Mail restarts and disables plugin
    image
  12. Enable gatekeeper sudo spctl --master-enable

@zwells
Copy link

zwells commented Dec 28, 2022

What I did that got it working again:

Turn off mail and openhaystack
Remove: ~/Library/Mail/Bundles/OpenHaystackMail.mailbundle and ~/Library/Application Support/Mail/Plug-ins/*
Edit: /Applications/OpenHaystack.app/Contents/Resources/OpenHaystackMail.mailbundle/Contents/info.plist
Add this entry:
Screenshot 2022-12-28 at 12 43 41 PM
Turn on openhaystack, it will ask to install the plugin, install it in: /Users/username/Library/Mail/Bundles/
it will open mail, close it
Disable gatekeeper sudo spctl --master-disable
Open mail and enable plugin
Allow access prompt
Mail will ask to restart
Enable gatekeeper sudo spctl --master-enable

@bruvv
Copy link

bruvv commented Jan 2, 2023

@zwells did exactly that still did not work

@acalatrava
Copy link

This is happening because when you modify the Info.plist you break the signature of the mail bundle. You need to sign it again, you can use your own Apple ID for sign it.

Go to /Users/username/Library/Mail/Bundles/ and issue the following command after installing the bundle and before opening Mail:

codesign -s "Apple Development" OpenHaystackMail.mailbundle

Then open Mail and it should work

@bruvv
Copy link

bruvv commented Jan 18, 2023

@acalatrava I get: error: The specified item could not be found in the keychain.

@acalatrava
Copy link

@acalatrava I get: error: The specified item could not be found in the keychain.

Can you post the result of this command, please?

security find-identity -v -p codesigning

@bruvv
Copy link

bruvv commented Jan 18, 2023

@acalatrava sure:
0 valid identities found

@acalatrava
Copy link

acalatrava commented Jan 18, 2023 via email

@beckmx
Copy link

beckmx commented Jan 19, 2023

@acalatrava hello, I also tried your suggestion I do get 3 profiles from the command (1 from the company I work and 2 personal from what I can see:

1) 504xxxx2A77 "Apple Development: NAME NAME (YVXXXXX)"
  2) 86972xxx78D13 "iPhone Distribution: XYZ"
  3) 3C70xx76 "Apple Development: [email protected] (RUXYZ)"
     3 valid identities found

I tried this:
codesign -s "Apple Development: NAME NAME (YVXXXXX)" OpenHaystackMail.mailbundle
and this
codesign -s "Apple Development: [email protected] (RUXYZ)" OpenHaystackMail.mailbundle

Both ways give me the same answer:
OpenHaystackMail.mailbundle: Operation not permitted

This command

sudo codesign -f -s - ~/Library/Mail/Bundles/OpenHaystackMail.mailbundle

/Users/xyz/Library/Mail/Bundles/OpenHaystackMail.mailbundle: bundle format unrecognized, invalid, or unsuitable

@acalatrava
Copy link

acalatrava commented Jan 19, 2023 via email

@bruvv
Copy link

bruvv commented Jan 19, 2023

I tried @acalatrava thanks for hanging in there:

security find-identity -v -p codesigning                        at 14:23:16
  1) 9ABA72AC108FCFF021C16F46B33EA2BDC5D9D71F "Apple Development: [email protected] (****)"
     1 valid identities found

When using codesign:

codesign -s "Apple Development: [email protected] (****)" OpenHaystackMail.mailbundle

But still I am unable to open the plugin.
To be 100% sure I added this in the info.plist:

	<key>Supported13.0PluginCompatibilityUUIDs</key>
	<array>
		<string>25288CEF-7D9B-49A8-BE6B-E41DA6277CF3</string>
		<string>6FF8B077-81FA-45A4-BD57-17CDE79F13A5</string>
		<string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
		<string>A4B49485-0377-4FAB-8D8E-E3B8018CFC21</string>
		<string>890E3F5B-9490-4828-8F3F-B6561E513FCC</string>
	</array>
    <key>Supported13.1PluginCompatibilityUUIDs</key>
	<array>
		<string>25288CEF-7D9B-49A8-BE6B-E41DA6277CF3</string>
		<string>6FF8B077-81FA-45A4-BD57-17CDE79F13A5</string>
		<string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
		<string>A4B49485-0377-4FAB-8D8E-E3B8018CFC21</string>
		<string>890E3F5B-9490-4828-8F3F-B6561E513FCC</string>
	</array>

@bruvv
Copy link

bruvv commented Feb 13, 2023

I compiled it myself using xcode and then it works, even for 13.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for plugin for macOS 13.0 Ventura and Mail app Version 16.0 (3731.200.110.1.12)
5 participants