{"id":25633066,"url":"https://github.com/zkemail/relayer-imap","last_synced_at":"2026-02-16T15:36:08.990Z","repository":{"id":243533103,"uuid":"812375188","full_name":"zkemail/relayer-imap","owner":"zkemail","description":"Rust IMAP micro-utility for zk email relayers.","archived":false,"fork":false,"pushed_at":"2025-01-15T17:32:29.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T18:16:29.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkemail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-08T17:52:36.000Z","updated_at":"2025-01-15T17:32:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"10c77f0d-154e-45d5-9409-efbae1edc1fd","html_url":"https://github.com/zkemail/relayer-imap","commit_stats":null,"previous_names":["zkemail/relayer-imap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zkemail/relayer-imap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-imap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-imap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-imap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-imap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkemail","download_url":"https://codeload.github.com/zkemail/relayer-imap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-imap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29511707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":[],"created_at":"2025-02-22T21:27:53.276Z","updated_at":"2026-02-16T15:36:08.970Z","avatar_url":"https://github.com/zkemail.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IMAP Relayer\n\nThis project is an IMAP client that retrieves new emails and forwards them to a specified relayer endpoint.\n\n## Features\n\n- Connects to an IMAP server using either password or OAuth2 authentication\n- Retrieves unseen emails from the inbox\n- Forwards email bodies to a specified relayer endpoint\n- Automatic reconnection on connection loss\n\n## Prerequisites\n\n- Rust (latest stable version)\n- Cargo (Rust's package manager)\n\n## Setup\n\n1. Clone the repository:\n\n   ```\n   git clone \u003crepository-url\u003e\n   cd relayer-imap\n   ```\n\n2. Create a `.env` file in the project root and add the following environment variables:\n\n   ```\n   RELAYER_ENDPOINT=\u003cyour-relayer-endpoint\u003e\n   IMAP_LOGIN_ID=\u003cyour-email\u003e\n   IMAP_DOMAIN_NAME=\u003cimap-server-domain\u003e\n   IMAP_PORT=\u003cimap-server-port\u003e\n   AUTH_TYPE=\u003cpassword or oauth\u003e\n   IMAP_LOGIN_PASSWORD=\u003cyour-password\u003e # If using password authentication\n\n   # If using OAuth2 authentication, add these:\n   IMAP_CLIENT_ID=\u003cyour-oauth-client-id\u003e\n   IMAP_CLIENT_SECRET=\u003cyour-oauth-client-secret\u003e\n   IMAP_AUTH_URL=\u003coauth-auth-url\u003e\n   IMAP_TOKEN_URL=\u003coauth-token-url\u003e\n   IMAP_REDIRECT_URL=\u003coauth-redirect-url\u003e\n   ```\n\n## Usage\n\nTo run the project:\n\n```\ncargo run\n```\n\nThis will start the IMAP client, which will continuously check for new emails and forward them to the specified relayer endpoint.\n\n## Configuration\n\nThe project uses environment variables for configuration. You can modify these in the `.env` file or set them directly in your environment.\n\nKey configuration options:\n\n- `AUTH_TYPE`: Set to \"password\" for password-based authentication or \"oauth\" for OAuth2 authentication.\n- `RELAYER_ENDPOINT`: The endpoint where email bodies will be forwarded.\n\nFor more details on configuration options, see the `config.rs` file:\n\n```\nrust:src/config.rs\nstartLine: 37\nendLine: 57\n```\n\n# Error Handling\n\nThe project includes robust error handling and automatic reconnection in case of connection issues. If you encounter persistent problems, check the logs for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkemail%2Frelayer-imap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkemail%2Frelayer-imap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkemail%2Frelayer-imap/lists"}