https://github.com/cca/archive-hr-news
archive HR newsletters
https://github.com/cca/archive-hr-news
Last synced: 5 months ago
JSON representation
archive HR newsletters
- Host: GitHub
- URL: https://github.com/cca/archive-hr-news
- Owner: cca
- Created: 2025-09-26T23:43:40.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-01-29T23:22:30.000Z (6 months ago)
- Last Synced: 2026-01-30T12:59:57.928Z (6 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Archive HR Newsletters
Google Apps Script to search my gmail inbox for particular emails worth archiving and save them to a Drive folder. There is a preset function for saving years of HR newsletters or President's Office emails at a time, or a more targeted `archiveEmails` function can be employed with different parameters.
## Setup
- Go to script.google.com and create a project
- Copy-paste code.js in the project's default code file
- Under **Services**, add the **Gmail API**
- **Deploy** the project which causes it to ask for Gmail & Drive permissions
## Usage
Edit the `archiveHRYear(2025)` function at the top to capture a year of newsletters then **Run**. They will be saved to a folder named "HR News Archive" in your Drive, which is created if it does not exist. I have not tried moving the folder to a Shared Drive to see if files continue to be saved to it or if that causes the script to create another folder instead.
## License
[ECL-2.0](https://opensource.org/license/ecl-2-0)