
Go in the Run menu, then select gmailAutoarchive.
Name it gmailAutoarchive (it will be saved in the root folder of your Google Drive).
WHERE TO FIND THE ARCHIVE IN GMAIL CODE
Copy and paste this code from GitHub into your Google Script. Use a Google Script to archive dailyįollow the next steps to create a Google Script of your own and use the piece of code shown below: You can repeat that process to any other recurrent emails you get (Spotify notifications, Quora digests, LinkedIn recruiters, WordPress comments, etc). Before you finish, tick the box Also apply to matching conversations at the bottom of the formįrom now on, all the emails received from Facebook will be labelled with the ‘ autoarchive’ label. On the next screen, tick the Apply the label box, and select the autoarchive label. Then hit the Create filter with this search. Follow the next steps to create a Gmail filter which is going to apply the ‘autoarchive’ label to these Facebook notifications. Let’s say you want each notification you receive from Facebook to be automatically archived after 2 days. Use Gmail filters to apply the ‘autoarchive’ label Click the hamburger menu icon to reveal labels and click the All Mail label. Search for a specific message using the Gmail search bar. Please bear in mind it’s a method to keep your inbox cleaned over time onward, this is not a method to get rid of the 20K unread and useless emails piling up in your inbox that you accumulated for the last 10 years. Just like when using the web version of Gmail, there are two ways to find archived Gmail messages in the Gmail app: 1. The method described below makes it easier and only uses a Gmail label to automatise the archiving process on certain types of emails (newsletters, notifications, emails digests, etc). Maintaining your inbox clean can be hard, as previously explained. Auto archive emails in Gmail after 2 days