I accidentally marked all of my messages as read in Gmail.
Can I undo this action?
Best Answer
As Alex has said in his comment, "If you haven’t touched anything after, you should have the option to undo the previous action in the notification that appears at the top of Gmail." but if you have and that notification bar no longer exists, then I do not think so that there is absolutely any way to undo it.
If you use GMail Offline Feature, then you can see what messages you haven't still read but that too you would have to do before you sync.
Perform a search to find all the messages you want to select. (You can use is:unread too)
Click select all
You will see that above the first item in the list there is a banner that says something like: All 50 conversations on this page are selected. Select all # conversations in "..."; click that link.
You can also do this with a filter, by creating the filter, choosing to mark the messages as read, and then choosing to apply the filter to the matching conversations. Then simply delete the filter.
Search for string before:date (date in format yyyy-mm-dd) and then choose More > Mark all as read.
Watch out: This will select also emails from this date! I.e. before:2012-07-12 will select email received before 12 July 2012, but also emails received on 12 July 2012.
Best Answer
As Alex has said in his comment, "If you haven’t touched anything after, you should have the option to undo the previous action in the notification that appears at the top of Gmail." but if you have and that notification bar no longer exists, then I do not think so that there is absolutely any way to undo it.
If you use GMail Offline Feature, then you can see what messages you haven't still read but that too you would have to do before you sync.