Automatically Mark All Archived Email as Read with a Gmail Script

Some messages are so short, you don’t even need to open them—you can just archive them from your inbox, or from Android’s notification drawer. Of course, then you have a bunch of archived, unread emails. This simple Gmail script will fix that.