Is there a way to automatically mark all the emails in my Gmail inbox as read at the end of every day?Even better, if it didn't mark the email in the 'Primary' tab read.Note: I am looking for an automatic way to do this at the end of the day.
Is there a way to mark all mail as read at the end of every day?
gmail;gmail filters;automation
From here, I got a script and modified it:Go to http://www.scripts.google.com, and select 'Gmail' from the left hand side of the popup.Delete all existing code, and paste this (the modified version):function markAllAsRead() {     var threads = GmailApp.search('in:unread');     GmailApp.markThreadsRead(threads); };Save the file, and run it, making sure to allow access when it asks you.Go to Resources > Current Project's Triggers and add a trigger to do it, for example every week.