{"id":47641606,"url":"https://github.com/mahaupt/mailgpg","last_synced_at":"2026-04-23T22:00:41.970Z","repository":{"id":346312622,"uuid":"1188605677","full_name":"mahaupt/mailgpg","owner":"mahaupt","description":"Native macOS Mail extension for OpenPGP — sign, encrypt, and decrypt emails using your local GPG keychain, directly in Apple Mail","archived":false,"fork":false,"pushed_at":"2026-04-23T07:35:17.000Z","size":199,"stargazers_count":19,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-23T09:30:24.535Z","etag":null,"topics":["apple-mail","e2ee","email","encryption","gpg","macos","mail-extension","mailkit","openpgp","pgp","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahaupt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-22T10:25:21.000Z","updated_at":"2026-04-23T07:35:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mahaupt/mailgpg","commit_stats":null,"previous_names":["mahaupt/mailgpg"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/mahaupt/mailgpg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaupt%2Fmailgpg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaupt%2Fmailgpg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaupt%2Fmailgpg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaupt%2Fmailgpg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahaupt","download_url":"https://codeload.github.com/mahaupt/mailgpg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaupt%2Fmailgpg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32200159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T20:19:26.138Z","status":"ssl_error","status_checked_at":"2026-04-23T20:19:23.520Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple-mail","e2ee","email","encryption","gpg","macos","mail-extension","mailkit","openpgp","pgp","swift"],"created_at":"2026-04-02T00:58:53.067Z","updated_at":"2026-04-23T22:00:41.963Z","avatar_url":"https://github.com/mahaupt.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MailGPG\n\nNative macOS Mail extension for OpenPGP — sign, encrypt, and decrypt emails using your local GPG installation, directly in Apple Mail.\n\n## Requirements\n\n- macOS 14 Sonoma or later\n- Apple Mail\n- [GnuPG](https://gnupg.org) (`brew install gnupg`)\n- [pinentry-mac](https://github.com/GPGTools/pinentry) (`brew install pinentry-mac`)\n\n## Installation\n\n```bash\nbrew install --cask mahaupt/mailgpg/mailgpg\n```\n\nThen enable the extension:\n**Mail → Settings → Extensions → MailGPG ✓**\n\nRestart Mail if it was already open.\n\n### First-time setup\n\nMailGPG requires `pinentry-mac` to prompt for your key passphrase. Since the host app runs as a background service (no terminal), GPG's default curses-based pinentry will not work and signing/decryption will fail.\n\nOpen a new compose window in Mail, click the MailGPG panel, and open **Diagnostics**. If pinentry is not configured correctly, a warning will appear with a one-click **Fix** button that configures `pinentry-mac` automatically.\n\nAlternatively, add this line to `~/.gnupg/gpg-agent.conf` manually (use `/usr/local/bin/pinentry-mac` on Intel Macs):\n```\npinentry-program /opt/homebrew/bin/pinentry-mac\n```\nThen restart the agent: `gpgconf --kill gpg-agent`\n\nIf you do not have a private key yet, create one with GnuPG:\n[How to create a new GPG key](https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key)\n\n## Features\n\n- **PGP/MIME** compliant (RFC 3156) — tested compatible with Thunderbird, Proton Mail, and Mailvelope\n- **Sign** outgoing emails with your private key\n- **Encrypt** outgoing emails to recipients with known public keys\n- **Decrypt** incoming encrypted emails inline in Mail\n- **Verify** signatures on incoming signed emails\n- **Key lookup** — automatically fetches missing public keys from keyservers when encryption is enabled\n- **Key management** — import, delete, set trust levels, manage public and private keys\n- Per-compose controls via a panel in the Mail compose window\n\n## Architecture\n\nMailGPG uses a two-process design required by Apple's MailKit sandboxing:\n\n- **Host app** (`MailGPG.app`) — runs unsandboxed as a background service; executes GPG subprocesses and exposes results over XPC\n- **Mail extension** (`MailGPGExtension`) — sandboxed MailKit extension loaded by Mail; handles all UI and delegates GPG operations to the host app via XPC\n\nThe host app is registered as a login item by the Homebrew cask and is automatically started at login.\n\n## License\n\nGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahaupt%2Fmailgpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahaupt%2Fmailgpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahaupt%2Fmailgpg/lists"}