Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


Can I export my Gmail filters?

Over time I have become reliant on Google's Gmail service, but it strikes me that if I were to ever bail on it, I'd have a hard time rebuilding all of my email rules. Even if not, it'd be helpful to migrate my rules from one account to another. Except, as usual, there's no way to do that. Or is there a way to export and import Gmail mail filters?


Dave's Answer:

That's a great question and you're definitely not alone in learning to rely on Gmail and simultaneously being a bit concerned about the difficulty of pulling information out of your Gmail account and configuration.

Fortunately, there's a solution, though you have to delve into Gmail Labs to enable it.

To do so, log in to Gmail, and along the top click on "Settings", then "Labs". Scroll down a ways through the many cool (and sometimes weird and goofy) optional additions and tweaks you can make to your Gmail setup and look for one ingeniously called "Filter Import/Export":

gmail labs import filters

Simply choose "Enable" then scroll all the way to the bottom of the list and click on "Save Changes".

Now go to "Settings" again and go to "Filters":

gmail settings general filters

Now scroll down to the very bottom of all your Gmail mail filters and you'll see some new stuff:

gmail settings import export filters

You can see an "Export" button, though it's grayed out, and on the right a text link "Import Filters". Let's export first.

To export your rules you need to select one or more. I'll export everything (I have a lot of filters, truth be told) by clicking on "All". Now the "Export" button is enabled:

gmail settings import export filters 2

Guess what I'm going to do now. You're right! Click on "Export". Boooyaaa!

A new file is created and downloaded, which, in Google Chrome, ends up looking like this in the download status window:

gmail settings filters exported

This XML file is not particularly easy to read as a human, but it is easily parsed and read by a computer, notably the Gmail service itself, so just squirrel it away in some backup directory and you're good.

Now, let's say you wanted to import your filters into a new account. This is most easily done by enabling the Filter Import/Export add-on, then clicking on "Import filters" link on the bottom of the Settings --> Filters window:

gmail labs import filters

I'll let you figure it out from here, but it's pretty straightforward and, more importantly, it does liberate this data from Google and let you have a copy of your email filter rules. Very helpful!


More Useful Google Gmail Help Articles:
✔   Can I delete individual messages in a Gmail thread?
I'm not much of a Gmail fan because of the annoying threading feature -- is there a way to turn it off? --...
✔   How do I forward a Gmail mail message?
Hey Dave! After I read my gmail messages, I want to forward to another person. How do I forward messages in Gmail?...
✔   Possible to add a GMail search box to my site?
I'm curious: I know you've shown the necessary HTML code to add a search box on my site for Google, Yahoo, eBay, Pinterest,...
✔   How to search smart in Google's Gmail?
I've been using Gmail for years now, and have a huge archive of messages. Very helpful, but sometimes when I'm slogging through hundreds...
✔   How do I send a Gmail invite to a friend? [revised]
Please send an invitation to join gmail to my friend at [[redacted]] The invitation box does not appear on my Gmail. It used...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  




Categorized: Google Gmail Help   (Article 9270, Written by )
Tagged: email filters, gmail filters, google chrome, google gmail
Previous: How does Facebook's Comment by Email feature work?
Next: How can I see the "full headers" of my Yahoo email messages?




Reader Comments To Date: 2

Ayush Saran said, on January 20, 2010 10:05 AM:

Thanks a ton. I didnt know about this. I'd be lost without my message filters if something was to happen to them. Always a good idea to back them up.

Perth said, on January 23, 2010 10:27 PM:

Thankyou very much. You just saved me *alot* of time!

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.