Change date for gmail expired mail
A common issue!
To change the date for Gmail expired mail, you can follow these steps:
Method 1: Using Gmail's built-in feature
- Log in to your Gmail account.
- Click on the gear icon () in the upper right corner and select "See all settings."
- Go to the "Filters and Blocked Addresses" tab.
- Click on "Create a new filter."
- In the "From" field, enter
expired
(without quotes). - Click on "Create filter."
- In the "Apply the label" dropdown menu, select "Mark as read" and then click on "Apply."
- In the "Apply the label" dropdown menu again, select "Mark as unread" and then click on "Apply."
- Click on "Create filter" again.
This will mark all expired emails as unread and change their date to the current date.
Method 2: Using a third-party add-on
- Install the "Snooze" add-on from the Chrome Web Store.
- Log in to your Gmail account.
- Click on the Snooze icon () in the upper right corner of the inbox.
- Select the expired emails you want to change the date for.
- Click on the "Snooze" button.
- In the "Snooze" window, select "Mark as unread" and then click on "Snooze."
- In the "Snooze" window again, select "Mark as read" and then click on "Snooze."
- Click on "Snooze" again.
This will mark all expired emails as unread and change their date to the current date.
Method 3: Using a script
- Install the "Gmail Script" add-on from the Chrome Web Store.
- Log in to your Gmail account.
- Click on the Gmail Script icon () in the upper right corner of the inbox.
- Create a new script by clicking on the "Create" button.
- In the script editor, paste the following code:
function changeExpiredDate() { var threads = GmailApp.searchThreads('label:expired'); for (var i = 0; i < threads.length; i++) { var thread = threads[i]; var messages = thread.getMessages(); for (var j = 0; j < messages.length; j++) { var message = messages[j]; message.setLabels([GmailApp.getUserLabelByName('unread')]); message.setLastViewedDate(new Date()); } } }
- Save the script by clicking on the "Save" button.
- Run the script by clicking on the "Run" button.
This will mark all expired emails as unread and change their date to the current date.
Note: These methods may not work if you have a large number of expired emails, as they may take some time to process. Additionally, be cautious when using scripts, as they can potentially modify your email data.