1

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.

1

1 Answer 1

0

From here, I got a script and modified it:

  1. Go to script.google.com, and select 'Gmail' from the left hand side of the popup.
  2. Delete all existing code, and paste this (the modified version):
function markAllAsRead() {   
  var threads = GmailApp.search('in:unread');   
  GmailApp.markThreadsRead(threads); 
};
  1. Save the file, and run it, making sure to allow access when it asks you.
  2. Go to Resources > Current Project's Triggers and add a trigger to do it, for example every week.
2
  • 1
    Please note it is www.script.google.com not scripts! Otherwise v helpful tho
    – h4xxr
    Aug 4, 2020 at 20:34
  • Thanks @h4xxr, edited! :) Aug 5, 2020 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.