I have Gmail filters set up to label and categories incoming mail. How do I automatically archive my mail when it reaches a predefined age, with different ages defined for each label and category? For example, I want mail labelled "Personal" archive after one day, and mail categorized as "Updates" after five days.


Gmail does not have this functionality built in, but it can be achieved using a Google script. Here is a list of such solutions:

  • 1
    An answer that requires the reader to go somewhere else to get the information is not a useful answer. We like our answers to be self-contained. – ale Jan 23 '17 at 13:31
  • 1
    I agree with @ale, these links (short of the WebApps post) could all go stale tomorrow. This is not really very helpful for people consulting this over the long term. If you could expand on how the second, third, and fifth scripts actually help, this might be useful. – jonsca Jan 25 '17 at 0:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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