Categories: Internet

How to Add the Auto-Sweep Feature of Outlook to Gmail?

Sometimes it is a problem to delete the older messages and you would be spending a few hours to do so definitely. There is a way out though. Outlook has the feature called Auto Sweep Feature. This feature lets you delete the messages of a few senders you have specified after a certain period of time. In Gmail, you might have seen that it has the feature of auto purge in the folders of spam and trash. Any mails in these folders for more than 30 days are automatically deleted. Here is how to add the auto-sweep feature of outlook to Gmail.

Gmail Auto-Purge:

Many people do maintain labels for various newsletters. They also create rules for this and they are archived in Gmail, under the label. These messages, regardless of the fact that they are of no use currently continue to stay in the folder forever and you need to purge them automatically. If you have enabled the option of auto purging, it is possible to get these older mails removed without having to do any manual work that consumes effort and time. With auto purging you can experience other advantages of saving time.

How to initiate Auto Purging in Gmail?

Gmail has no option for initiating auto purging for any specific label, but you can get this done with a simple function. You have a Google Script to enable auto purge for some specific label, which is missing in Gmail. The script works by monitoring the particular rule or label you have designated and then clears off the older mails. If the mails that are exceeded the time of retention you have chosen, then they are deleted automatically.

What is the process?

  1. Change the following label: GMAIL_LABEL to theyou want to auto purge, that is to clear of the mails that have crossed the retention time automatically.
  2. Change PURGE_AFTER date to the date till when you want the retention of messages to be allowed. In simple words, if you want the messages to stay for 30 days, make it 30 and so on.
  3. Go to Run. Then it asks for authorization. To initialize you need to give the required permissions.
  4. No one can access this data because this is your personal script.
  5. Go to Run. Then choose Install
  6. This installs the script of auto purging for your Gmail

Then you can come out of the script and then the script continues to monitor the Gmailfrom background.

Swasti Pujari

Swasti Pujari is a versatile Engineer, blogger, content writer, and Social Media Enthusiast. With a passion for technology and creativity, she has devoted her career to solving engineering challenges and crafting engaging content. Her online presence is a strategic platform for connecting with people and sharing insights. Swasti's unique blend of technical expertise and creative expression has made her a key figure in her field. Her mantra for success is continuous learning and happiness in her work, reflecting her innovative approach to both engineering and writing.

Share
Published by
Swasti Pujari

Recent Posts

Top 10 Sitcoms of the 2010s That You Need to Watch

Everyone loves binging a good old sitcom from time to time. The usual favourites such…

5 months ago

Top 15 Classics for Kids That Will Keep Your Child Occupied

According to recent psychological studies, indulging in too much screentime has resulted in decreased attention…

6 months ago

Top 15 Feel Good Movies To Free Your Mind of Stress

Feel good movies have the power to lift your mood no matter how sad you…

6 months ago

How to Conduct an SEO Audit for Your Joomla Website

Greetings, digital navigators! 🌐 Embarking on the journey of building a website with Joomla? Kudos!…

6 months ago

Top 10 Movies Like Hera Pheri That Are Simply Hilarious

Movies like Hera Pheri are not that hard to find. Hera Pheri is no doubt…

7 months ago

Top 15 Mythological Movies That Are Far Better Than Adipurush

Mythological movies are comforting to watch because they remind us of the stories that our…

8 months ago