{"id":17932586,"url":"https://github.com/stevenmaguire/imap-junk-pruner","last_synced_at":"2025-04-03T10:44:19.870Z","repository":{"id":185359437,"uuid":"673410171","full_name":"stevenmaguire/imap-junk-pruner","owner":"stevenmaguire","description":"Let's help keep our inboxes free from junk.","archived":false,"fork":false,"pushed_at":"2023-08-01T15:58:39.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T00:18:47.588Z","etag":null,"topics":["imap","junk","removal","spam"],"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/stevenmaguire.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}},"created_at":"2023-08-01T15:00:12.000Z","updated_at":"2023-08-01T15:04:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"be9a3f93-7335-411a-8fbc-2eb23f63b661","html_url":"https://github.com/stevenmaguire/imap-junk-pruner","commit_stats":null,"previous_names":["stevenmaguire/imap-junk-pruner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmaguire%2Fimap-junk-pruner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmaguire%2Fimap-junk-pruner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmaguire%2Fimap-junk-pruner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenmaguire%2Fimap-junk-pruner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevenmaguire","download_url":"https://codeload.github.com/stevenmaguire/imap-junk-pruner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246989500,"owners_count":20865306,"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","junk","removal","spam"],"created_at":"2024-10-28T21:28:10.242Z","updated_at":"2025-04-03T10:44:19.851Z","avatar_url":"https://github.com/stevenmaguire.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## IMAP Junk Pruner\n\nLet's help keep our inboxes free from junk.\n\n### Up and running\n\nCreate a senders keyword list in `accounts` directory. Name the file `{email address}.csv`. Senders can be keywords, email addresses, domains - anything that you can use to search your inbox to find emails when prefixed with FROM.\n\n```\n# accounts/junk.hater@example.com.csv\nnewsletter@example.com\nexample.com\nPolitician Name\n```\n\nRun the tool.\n\n```\n$ python3 main.py {host} {email address} {password}\n```\n\nAvailable options:\n\n| Option      | Parameters | Default | Example |\n| ----------- | ----------- | ----------- | ----------- |\n| Target Folder | `-tf` or `--target_folder`| `INBOX` | `-tf=INBOX/My\\ Folder` |\n| Buffer Folder | `-bf` or `--buffer_folder`| `None` | `-bf=INBOX/Bulk\\ Delete` |\n\nWhen executed, the tool will loop over the list of sender keywords, locate all matching messages, then delete them from the `target_folder`.\n\nIf a `buffer_folder` is specified, the messages will be copied to the `buffer_folder` before deleting from the `target_folder`. This is useful if you want to quarantine and review the candidate deletions.\n\n### Tip\n\nUnsubscribing from senders while you accumulate your sender keywords will help reduce the amount of future emails - hopefully.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenmaguire%2Fimap-junk-pruner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenmaguire%2Fimap-junk-pruner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenmaguire%2Fimap-junk-pruner/lists"}