This allows you to automatically organize your emails into subdirectories based on the sender.
Specifically the default will see all the emails with the label in:trash
and for each one of them, see all the people involved in the conversation, create a label for each one of them and finally label the email with all the labels.
The script allows some basic easy customization. In the top of it you may find:
var LABEL = "in:trash"; // which mail to organize ("in:trash","in:to-organise","is:read AND in:inbox")
var limit = 30; //maximum mail to process at one iteration (10-40: too many emails will cause google to block the script)
var freqInMinutes = 30; // How often to execute this script (every 10-50 minutes is great)
var createSumarry = true; // Create and email a summary of the processed emails (true/false).
LABEL
: the label for the emails that we will process.limit
: maximum mail to process at one iteration (10-40: too many emails will cause google to block the script).freqInMinutes
: How often to execute this script (every 10-50 minutes is great).createSumarry
: Create and email a summary of the processed emails (true/false). An email is then send to the email owner with a reference to all the processed emails.
Furthermore since it is open source you can modify it in any way you desire, but make sure what you are doing since it could mess up your email.
- Copy the script file to https://script.google.com/intro.
- Rename the script .
- Select
Install
and thenrun
.