{"id":13583678,"url":"https://github.com/inlet/alfred-workflow-gmail-filters","last_synced_at":"2025-04-06T21:32:41.603Z","repository":{"id":90877636,"uuid":"101898819","full_name":"inlet/alfred-workflow-gmail-filters","owner":"inlet","description":"Manage Gmail Filters via Alfred","archived":true,"fork":false,"pushed_at":"2020-10-06T08:02:11.000Z","size":63,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-06T00:39:21.378Z","etag":null,"topics":["alfred","alfred-workflow","filters","gmail","workflow"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/inlet.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}},"created_at":"2017-08-30T15:33:22.000Z","updated_at":"2023-11-22T21:49:47.000Z","dependencies_parsed_at":"2024-01-24T13:06:10.815Z","dependency_job_id":null,"html_url":"https://github.com/inlet/alfred-workflow-gmail-filters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inlet%2Falfred-workflow-gmail-filters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inlet%2Falfred-workflow-gmail-filters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inlet%2Falfred-workflow-gmail-filters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inlet%2Falfred-workflow-gmail-filters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inlet","download_url":"https://codeload.github.com/inlet/alfred-workflow-gmail-filters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247556135,"owners_count":20957910,"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":["alfred","alfred-workflow","filters","gmail","workflow"],"created_at":"2024-08-01T15:03:41.563Z","updated_at":"2025-04-06T21:32:41.375Z","avatar_url":"https://github.com/inlet.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Alfred Workflow - Manage Gmail Filters\n\n![](https://user-images.githubusercontent.com/232559/29885279-8761bab6-8db6-11e7-980f-c233b25a24ae.png)\n\n \nTired of getting spam in your mailbox? Setting up filters with Gmail webinterface (gmail.com \u003e settings \u003e filters) is quite cumbersome. The amount of effort simply keeps me away from doing so. \n\nThis workflow let's you create filters with ease using Alfred.\n\n## Requirements\n\n- Node `v8+`\n- Alfred `v3`\n- The Alfred Powerpack.\n- A Google account (with Gmail)\n- [GmailFilters.alfredworkflow](https://github.com/inlet/alfred-workflow-gmail-filters/blob/master/GmailFilters.alfredworkflow?raw=true).\n\n## Setup\n\nThis workflow requires API access to Google API over Oauth2. Follow these steps to create and configure an access token:\n\n1. Install binary\n\n       git clone https://github.com/inlet/alfred-workflow-gmail-filters ~/.alfred-workflow-gmail-filters\n       cd ~/.alfred-workflow-gmail-filters\n       yarn install\n    \n2. Authenticate with credentials\n\n   Head to [Google API Console \u003e Dashboard](https://console.developers.google.com/apis) and create oath2 credentials.\n   Checkout [Step 1: Node Quickstart Tutorial](https://developers.google.com/gmail/api/quickstart/nodejs) for more details.\n\n   Once created, download `client_secret.json` to `~/.alfred-workflow-gmail-filters` and run:\n\n       node ~/.alfred-workflow-gmail-filters/index.js --list\n    \n   Copy and paste the url in your browser and create the access token for your Google account. Then copy and paste the token into the terminal and hit `ENTER` to finish the authentication.\n\n    \u003e This stores the token in `token.json` for future requests.\n\n   You should see the enabled filters listed now. With this in place, you can now easily manage your Gmail filters.\n\n   See `node ~/.alfred-workflow-gmail-filters/index.js --help` for usage.\n\n3. Install the workflow\n\n   Double click on `GmailFilters.alfredworkflow`. Download [here](https://github.com/inlet/alfred-workflow-gmail-filters/blob/master/GmailFilters.alfredworkflow?raw=true)\n\n## Usage\n\nIn Alfred, type: `spam example@mail.com`\n\nYou should see a notification that the filter is added.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finlet%2Falfred-workflow-gmail-filters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finlet%2Falfred-workflow-gmail-filters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finlet%2Falfred-workflow-gmail-filters/lists"}