A Google Apps Script script to automatically delete unarchived mail after 7 days that hasn't been starred or marked as important
- Backup your emails using Google Takeout.
- Load this script into a new Google Apps Script project.
- Execute the setPurgeTrigger() function to set a trigger that will call the purge() function every day.
A detailed blog post with more information can be found at https://benbjurstrom.com/purge-email
Thanks to this gist by jamesramsay for getting me started in the right direction.
Hi Ben,
Do you have a google app script that gets the unregistered emails in my Gmail inbox and extract the email address and its content and generate it to a text file or to a google spreadsheet automatically.
For example, 123@XYZ.com is an unregistered email in my gmail and this email contains the following content 112233445566. And the generated Text file for example should be like:
123@XYZ.com 112233445566
Ben, is it possible for me to do this, I would really appreciate your help on this.
My email: el.el86@outlook.com
Best regards,