{"id":48289714,"url":"https://github.com/mmaudet/n8n-nodes-jmap","last_synced_at":"2026-04-04T23:02:12.039Z","repository":{"id":330007908,"uuid":"1121292822","full_name":"mmaudet/n8n-nodes-jmap","owner":"mmaudet","description":"n8n community node for JMAP email protocol (RFC 8620/8621) - Works with Apache James, Twake Mail, Fastmail. Supports AI Agent tools, advanced search filters, and attachment handling.","archived":false,"fork":false,"pushed_at":"2026-03-26T07:38:44.000Z","size":141,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T02:37:03.524Z","etag":null,"topics":["ai-agent","apache-james","automation","email","jmap","n8n","n8n-community-node","twake"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmaudet.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":"2025-12-22T18:44:01.000Z","updated_at":"2026-03-26T07:38:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mmaudet/n8n-nodes-jmap","commit_stats":null,"previous_names":["mmaudet/n8n-nodes-jmap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mmaudet/n8n-nodes-jmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmaudet%2Fn8n-nodes-jmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmaudet%2Fn8n-nodes-jmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmaudet%2Fn8n-nodes-jmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmaudet%2Fn8n-nodes-jmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmaudet","download_url":"https://codeload.github.com/mmaudet/n8n-nodes-jmap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmaudet%2Fn8n-nodes-jmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31418287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":["ai-agent","apache-james","automation","email","jmap","n8n","n8n-community-node","twake"],"created_at":"2026-04-04T23:02:02.435Z","updated_at":"2026-04-04T23:02:12.027Z","avatar_url":"https://github.com/mmaudet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# n8n-nodes-jmap\n\nCommunity node for [n8n](https://n8n.io/) to interact with JMAP email servers ([RFC 8620](https://datatracker.ietf.org/doc/html/rfc8620)/[RFC 8621](https://datatracker.ietf.org/doc/html/rfc8621)).\n\nCompatible with:\n- [Apache James](https://james.apache.org/)\n- [Twake Mail](https://twake.app/) by [LINAGORA](https://linagora.com/)\n- [Stalwart Mail Server](https://stalw.art/)\n- [Fastmail](https://www.fastmail.com/)\n- Any JMAP-compliant email server\n\n## Installation\n\n### Community Nodes (Recommended)\n\n1. Go to **Settings \u003e Community Nodes**\n2. Select **Install**\n3. Enter `n8n-nodes-jmap`\n4. Agree to the risks and click **Install**\n\n### Manual Installation\n\n```bash\ncd ~/.n8n/nodes\nnpm install n8n-nodes-jmap\n```\n\nThen restart n8n.\n\n---\n\n## Authentication\n\nThis node supports **three authentication methods** to connect to JMAP servers.\n\n### Method 1: Basic Authentication\n\nThe simplest method using email and password directly.\n\n**Configuration:**\n1. Create a new **JMAP API** credential\n2. Set **Authentication Method** to `Basic Auth`\n3. Fill in:\n   - **JMAP Server URL**: `https://jmap.example.com/jmap`\n   - **Email**: `user@example.com`\n   - **Password**: Your password\n\n**Use case:** Development, testing, or servers without OAuth2 support.\n\n---\n\n### Method 2: Bearer Token\n\nUse a pre-obtained access token (e.g., from an external OAuth2 flow).\n\n**Configuration:**\n1. Create a new **JMAP API** credential\n2. Set **Authentication Method** to `Bearer Token`\n3. Fill in:\n   - **JMAP Server URL**: `https://jmap.example.com/jmap`\n   - **Access Token**: Your JWT or access token\n\n**Use case:** Integration with existing authentication systems, tokens obtained via scripts or other workflows.\n\n---\n\n### Method 3: OAuth2 / OIDC with PKCE\n\nFull OAuth2 Authorization Code flow with PKCE (Proof Key for Code Exchange). This is the **recommended method for production** as it provides:\n- Automatic token refresh\n- No password storage in n8n\n- Secure SSO integration\n\n**Configuration:**\n1. Create a new **JMAP OAuth2 API** credential\n2. Fill in:\n   - **Client ID**: Your OIDC client ID\n   - **Client Secret**: Leave empty for public clients (PKCE)\n   - **Authorization URL**: `https://sso.example.com/oauth2/authorize`\n   - **Access Token URL**: `https://sso.example.com/oauth2/token`\n   - **JMAP Server URL**: `https://jmap.example.com/jmap`\n3. Click **Connect** to initiate the OAuth2 flow\n4. Log in with your SSO credentials\n\n**Compatible Identity Providers:**\n- [LemonLDAP::NG](https://lemonldap-ng.org/)\n- [Keycloak](https://www.keycloak.org/)\n- [Auth0](https://auth0.com/)\n- Any OAuth2/OIDC compliant provider\n\n#### Example: LemonLDAP::NG Configuration\n\n```\nAuthorization URL: https://sso.example.com/oauth2/authorize\nAccess Token URL:  https://sso.example.com/oauth2/token\nClient ID:         my-n8n-client\nScope:             openid email profile offline_access\n```\n\n#### Example: Keycloak Configuration\n\n```\nAuthorization URL: https://keycloak.example.com/realms/myrealm/protocol/openid-connect/auth\nAccess Token URL:  https://keycloak.example.com/realms/myrealm/protocol/openid-connect/token\nClient ID:         n8n-jmap-client\nScope:             openid email profile offline_access\n```\n\n---\n\n## Nodes\n\n### JMAP Node\n\nMain node for email operations.\n\n| Resource | Operation | Description |\n|----------|-----------|-------------|\n| Email | Send | Send a new email |\n| Email | Reply | Reply to an existing email |\n| Email | Get | Retrieve an email by ID |\n| Email | Get Many | List emails with advanced search filters |\n| Email | Get Attachments | Download attachments as binary data |\n| Email | Create Draft | Create a draft without sending |\n| Email | Delete | Delete an email |\n| Email | Mark as Read | Mark email as read |\n| Email | Mark as Unread | Mark email as unread |\n| Email | Move | Move email to another mailbox |\n| Email | Add Label | Add a mailbox label to an email |\n| Email | Remove Label | Remove a mailbox label from an email |\n| Email | Get Labels | Get all labels for an email |\n| Mailbox | Get | Get mailbox details by ID |\n| Mailbox | Get Many | List all mailboxes |\n| Thread | Get | Get thread details by ID |\n| Thread | Get Many | Get all emails in a thread |\n\n### JMAP Trigger Node\n\nPolling-based trigger for new emails.\n\n| Event | Description |\n|-------|-------------|\n| New Email | Triggers on any new email |\n| New Email in Mailbox | Triggers on new email in a specific mailbox |\n\n**Options:**\n- **Simple Output**: Return simplified email data\n- **Include Attachments Info**: Include attachment metadata\n- **Mark as Read**: Automatically mark fetched emails as read\n\n---\n\n## Features\n\n### Advanced Email Search\n\nThe **Get Many** operation supports powerful search filters based on JMAP RFC 8621:\n\n| Filter | Description |\n|--------|-------------|\n| **Received After** | Emails received after a specific date |\n| **Received Before** | Emails received before a specific date |\n| **From Contains** | Filter by sender address |\n| **To Contains** | Filter by recipient address |\n| **Subject Contains** | Filter by subject line |\n| **Full Text Search** | Search in subject, body, and addresses |\n| **Has Attachment** | Only emails with attachments |\n| **Unread Only** | Only unread emails |\n| **Flagged Only** | Only starred/flagged emails |\n\nCombine multiple filters for precise email retrieval.\n\n### Attachment Handling\n\nThe **Get Attachments** operation downloads email attachments as binary data, ready to use with other n8n nodes:\n\n- **Inline image filtering**: Exclude embedded images (signatures, logos) by default\n- **MIME type filtering**: Filter by file type (e.g., `application/pdf`, `image/*`)\n- **Native compatibility**: Works seamlessly with n8n's Compression, Google Drive, S3, and other nodes\n\nExample workflow: `JMAP Trigger` \u003e `Get Attachments` \u003e `Compression` (extract ZIP) \u003e `Google Drive` (upload)\n\n---\n\n## AI Agent Integration\n\nThis node can be used as a tool by n8n AI Agents, enabling autonomous email operations.\n\n### Setup\n\n1. Ensure you're using n8n version 1.x or later\n2. The node will automatically appear in the AI Agent's tool list\n\n### Example Use Cases\n\n- **Email assistant**: Let the AI read, search, and respond to emails\n- **Automated triage**: AI categorizes and labels incoming emails\n- **Smart notifications**: AI analyzes email content and triggers actions\n\n### Supported Operations as AI Tool\n\nThe AI Agent can use all JMAP operations:\n- Search emails with natural language queries\n- Read and analyze email content\n- Send replies based on context\n- Organize emails (labels, folders, flags)\n- Download and process attachments\n\n---\n\n## Contributing\n\nContributions are welcome! This project is open source and we encourage the community to help improve it.\n\n### How to Contribute\n\n1. **Fork** the repository\n2. **Create a branch** for your feature or fix: `git checkout -b feature/my-feature`\n3. **Make your changes** and test them locally\n4. **Run linting**: `npm run lint`\n5. **Commit** with a clear message\n6. **Push** to your fork and open a **Pull Request**\n\n### Ideas for Contributions\n\n- Support for additional JMAP capabilities (Calendar, Contacts)\n- Improved error handling and messages\n- Additional search filters\n- Documentation improvements\n- Bug fixes and optimizations\n\n### Local Development\n\n```bash\n# Clone your fork\ngit clone https://github.com/YOUR_USERNAME/n8n-nodes-jmap.git\ncd n8n-nodes-jmap\n\n# Install dependencies\nnpm install\n\n# Build\nnpm run build\n\n# Development mode (watch)\nnpm run dev\n\n# Lint\nnpm run lint\n\n# Format code\nnpm run format\n```\n\n### Testing Locally with n8n\n\n```bash\n# Start n8n with the local node\nN8N_CUSTOM_EXTENSIONS=\"/path/to/n8n-nodes-jmap\" n8n start\n```\n\n---\n\n## JMAP Protocol\n\nJMAP (JSON Meta Application Protocol) is a modern, efficient alternative to IMAP for email access:\n\n- **Stateless**: No persistent connections required\n- **JSON-based**: Easy to parse and debug\n- **Efficient**: Batched requests, delta sync\n- **Standardized**: RFC 8620 (Core) and RFC 8621 (Mail)\n\nLearn more: [jmap.io](https://jmap.io/)\n\n---\n\n## License\n\nMIT\n\n---\n\n## Author\n\n[Michel-Marie MAUDET](https://github.com/mmaudet)\n\nThis project is developed with the support of [LINAGORA](https://linagora.com/) and [Twake](https://twake.app/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmaudet%2Fn8n-nodes-jmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmaudet%2Fn8n-nodes-jmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmaudet%2Fn8n-nodes-jmap/lists"}