{"id":24527169,"url":"https://github.com/basemax/get-my-inbox-imap","last_synced_at":"2025-03-15T16:27:01.953Z","repository":{"id":273416078,"uuid":"918192090","full_name":"BaseMax/get-my-inbox-imap","owner":"BaseMax","description":"This is a Python script that connects to an IMAP server, logs in using provided credentials, and fetches emails based on specific criteria. The script supports connecting through a proxy server, retries on failure, and reads emails containing certain keywords.","archived":false,"fork":false,"pushed_at":"2025-01-17T12:45:08.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T19:40:06.667Z","etag":null,"topics":["imap","imap-client","imap-library","imap-protocol","imap-proxy","imap-py","imap-python","imaplib","py","py-imap","python","python-imap"],"latest_commit_sha":null,"homepage":"","language":"Python","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/BaseMax.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}},"created_at":"2025-01-17T12:37:34.000Z","updated_at":"2025-01-17T12:45:21.000Z","dependencies_parsed_at":"2025-01-20T19:40:10.869Z","dependency_job_id":"2e939882-4384-42d0-83e5-e27a767a5750","html_url":"https://github.com/BaseMax/get-my-inbox-imap","commit_stats":null,"previous_names":["basemax/get-my-inbox-imap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fget-my-inbox-imap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fget-my-inbox-imap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fget-my-inbox-imap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fget-my-inbox-imap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/get-my-inbox-imap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235069309,"owners_count":18930938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["imap","imap-client","imap-library","imap-protocol","imap-proxy","imap-py","imap-python","imaplib","py","py-imap","python","python-imap"],"created_at":"2025-01-22T06:17:01.854Z","updated_at":"2025-01-22T06:17:03.446Z","avatar_url":"https://github.com/BaseMax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-my-inbox-imap\n\nThis is a Python script that connects to an IMAP server, logs in using provided credentials, and fetches emails based on specific criteria. The script supports connecting through a proxy server, retries on failure, and reads emails containing certain keywords.\n\n## Features\n- Connects to an IMAP server using SSL.\n- Supports logging in to the server with username and password.\n- Allows searching for emails containing specific keywords from a specific sender (e.g., GitHub).\n- Proxy support (HTTP, SOCKS4, SOCKS5).\n- Retries for network-related errors.\n- Fetches and prints email content.\n\n## Requirements\n\n- Python 3.x\n- `socks` library (`pip install PySocks`)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/BaseMax/get-my-inbox-imap.git\n   ```\n\n2. Install the required dependencies:\n   ```bash\n   pip install PySocks\n   ```\n\n## Usage\n\nTo run the script, use the following command:\n\n```bash\npython imap.py \u003cusername\u003e \u003cpassword\u003e [--host \u003chost\u003e] [--port \u003cport\u003e] [--proxy_host \u003cproxy_host\u003e] [--proxy_port \u003cproxy_port\u003e] [--proxy_type \u003cproxy_type\u003e]\n```\n\n### Parameters:\n\n- `\u003cusername\u003e`: The IMAP username (usually your email address).\n- `\u003cpassword\u003e`: The IMAP password (you may need to generate an app-specific password for some providers).\n- `--host`: The IMAP server host (default: `secureimap.t-online.de`).\n- `--port`: The IMAP server port (default: `993`).\n- `--proxy_host`: The proxy server host (optional).\n- `--proxy_port`: The proxy server port (optional).\n- `--proxy_type`: The proxy type (`HTTP`, `SOCKS4`, or `SOCKS5`; default: `HTTP`).\n\n### Example:\n\n```bash\npython imap.py example@gmail.com mypassword --host imap.gmail.com --port 993 --proxy_host 127.0.0.1 --proxy_port 1080 --proxy_type SOCKS5\n```\n\nThis command will connect to the IMAP server(s), authenticate using the provided username and password, and fetch emails containing the keyword \"github.com\" from \"github.com\".\n\n## Disclaimer\n\nUse the script responsibly. Ensure that you have permission to access the email account and that the use of proxies is allowed by your network or service provider.\n\n## Contact\n\nFor any issues or feature requests, feel free to open an issue on the [GitHub repository](https://github.com/BaseMax/get-my-inbox-imap).\n\n## License\n\nMIT License\n\nCopyright 2025 Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fget-my-inbox-imap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fget-my-inbox-imap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fget-my-inbox-imap/lists"}