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

  1. Log in to your Gmail account.
  2. Click on the gear icon () in the upper right corner and select "See all settings."
  3. Go to the "Filters and Blocked Addresses" tab.
  4. Click on "Create a new filter."
  5. In the "From" field, enter expired (without quotes).
  6. Click on "Create filter."
  7. In the "Apply the label" dropdown menu, select "Mark as read" and then click on "Apply."
  8. In the "Apply the label" dropdown menu again, select "Mark as unread" and then click on "Apply."
  9. 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

  1. Install the "Snooze" add-on from the Chrome Web Store.
  2. Log in to your Gmail account.
  3. Click on the Snooze icon () in the upper right corner of the inbox.
  4. Select the expired emails you want to change the date for.
  5. Click on the "Snooze" button.
  6. In the "Snooze" window, select "Mark as unread" and then click on "Snooze."
  7. In the "Snooze" window again, select "Mark as read" and then click on "Snooze."
  8. 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

  1. Install the "Gmail Script" add-on from the Chrome Web Store.
  2. Log in to your Gmail account.
  3. Click on the Gmail Script icon () in the upper right corner of the inbox.
  4. Create a new script by clicking on the "Create" button.
  5. 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());
     }
    }
    }
  6. Save the script by clicking on the "Save" button.
  7. 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.