{"id":24527549,"url":"https://github.com/ariasemis/propagate-gmail-label","last_synced_at":"2026-05-15T08:04:09.554Z","repository":{"id":103261992,"uuid":"602746710","full_name":"ariasemis/propagate-gmail-label","owner":"ariasemis","description":"Periodically add missing labels to gmail messages","archived":false,"fork":false,"pushed_at":"2023-02-22T18:26:55.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-15T00:12:44.365Z","etag":null,"topics":["apps-script","clasp","gmail","google-apps-script","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ariasemis.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":"2023-02-16T21:21:25.000Z","updated_at":"2023-02-19T21:16:05.000Z","dependencies_parsed_at":"2023-06-28T17:45:14.537Z","dependency_job_id":null,"html_url":"https://github.com/ariasemis/propagate-gmail-label","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/ariasemis%2Fpropagate-gmail-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariasemis%2Fpropagate-gmail-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariasemis%2Fpropagate-gmail-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariasemis%2Fpropagate-gmail-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariasemis","download_url":"https://codeload.github.com/ariasemis/propagate-gmail-label/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243760345,"owners_count":20343626,"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":["apps-script","clasp","gmail","google-apps-script","typescript"],"created_at":"2025-01-22T06:19:32.613Z","updated_at":"2025-10-28T01:33:45.902Z","avatar_url":"https://github.com/ariasemis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![clasp](https://img.shields.io/badge/built%20with-clasp-4285f4.svg)](https://github.com/google/clasp)\n\nIn [Gmail](https://mail.google.com/), labels attach to individual messages, not whole threads. This means that new arriving messages in a thread will not always be given existing labels unless they are manually reapplied.\n\nTo work around this issue, this project uses a [Google Apps Script](https://script.google.com/) to periodically add missing labels to all messages affected.\n\n\n## Installation\n\n1. Enable the Google Apps Script API at https://script.google.com/home/usersettings\n1. Create a new project at https://script.google.com/home\n1. Clone or download this repository\n   ```sh\n   git clone git@github.com:ariasemis/propagate-gmail-label.git\n   ```\n1. Edit `.clasp.json` file with the `scriptId` of the project you created\n1. Push changes to google apps script project\n   ```sh\n   npm install \n   npx clasp login # access your Google account\n   npm run push\n   ```\n1. Open project on script.google.com and run `install` function\n\n\u003e To stop the script from running you can execute the `uninstall` function provided in the script.\n\n\n## Settings\n\nThe following options can be configured in _Project Settings\u003eScript Properties_:\n\n| Property | Default Value | Description |\n| -- | -- | -- |\n| DAYS_BETWEEN_RUNS | `1` | Frequency in days at which the script will run |\n| TIME_OF_DAY_TO_RUN | `5` | Specifies the hour at which the script runs |\n| DRY_RUN | `false` | When `true`, the script will only log results without applying changes to message labels |\n| MAX_THREADS_PER_RUN | `20` | Maximum number of message threads to process per run |\n| NO_LABEL | `uncategorized` | Name of the label to add to threads without any label |\n\n\n## Acknowledgements\n\nInspired by [Tom Scott's post on fixing Gmail labels](https://www.tomscott.com/fix-gmail-labels-threads/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariasemis%2Fpropagate-gmail-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariasemis%2Fpropagate-gmail-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariasemis%2Fpropagate-gmail-label/lists"}