{"id":20346818,"url":"https://github.com/jackjduggan/email-approval-system","last_synced_at":"2026-05-09T13:38:16.843Z","repository":{"id":229667614,"uuid":"777323719","full_name":"jackjduggan/email-approval-system","owner":"jackjduggan","description":"An email approval system built with Python that sends an email, parses the reply and keeps track of processed emails.","archived":false,"fork":false,"pushed_at":"2024-03-26T11:20:08.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T15:48:37.493Z","etag":null,"topics":["gmail","html","imaplib","python","smptlib"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jackjduggan.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-03-25T16:26:26.000Z","updated_at":"2024-03-26T22:15:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"af2f9d31-7721-4412-8fbe-df7c102c830b","html_url":"https://github.com/jackjduggan/email-approval-system","commit_stats":null,"previous_names":["jackjduggan/email-approval-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jackjduggan/email-approval-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Femail-approval-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Femail-approval-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Femail-approval-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Femail-approval-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackjduggan","download_url":"https://codeload.github.com/jackjduggan/email-approval-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Femail-approval-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32821696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["gmail","html","imaplib","python","smptlib"],"created_at":"2024-11-14T22:14:08.760Z","updated_at":"2026-05-09T13:38:16.826Z","avatar_url":"https://github.com/jackjduggan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email Approval System with Python\nI built this solution when testing things for my final year project.\\\nI needed a way to pause a Python/Bash Pipline and wait for approval before continuing.\\\nAfter a brief amount of research, I stumbled across the simple idea of using email.\n\n## How it works:\n- There's a hidden file called `config.py` with string entries for `SENDER_EMAIL`, `SENDER_PASSWORD`, and `RECEIVER_PASSWORD`.\n    - For the sender, I created a new email specifically for this use case. The receiver is my college email.\n    - The receiver's password is actually a GMail app password, which can only be obtained when 2FA is enabled.\n    - This file's contents is imported at the top of the Python files.\n- `send.py` is executed, which sends an email to the recipient\n- The recipient must reply to the email with either **Approve** or **approve**.\n- `read.py` is executed, and scans the sender's inbox for the reply. When it finds it, it checks it says **Approve**. Anything else is considered **Deny**.\n- If all goes well, the email's UID as well as the message **Approved** are printed to the console.\n- A hidden file at, `db/processed_uids.txt` tracks the emails that have already been read, so that an email can't be processed more than once.\n\n## Screenshots:\n![image](https://github.com/jackjduggan/email-approval-system/assets/74904632/d36dbd1b-19c1-41a7-b961-484bc12e1af9)\n![image](https://github.com/jackjduggan/email-approval-system/assets/74904632/4dce1eb3-50c1-41db-bc56-cc75265bae81)\n\n### References\nThis projects code was adapted from the following articles\n[Send Email Code Reference](https://medium.com/@thakuravnish2313/sending-emails-with-python-using-the-smtplib-library-e5db3a8ce69a)\n[Read Email Code Reference](https://alluaravind1313.medium.com/email-reading-using-python-imaplib-2d50912c119)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackjduggan%2Femail-approval-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackjduggan%2Femail-approval-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackjduggan%2Femail-approval-system/lists"}