Free tech support / small logo


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!









Subscribe!
Never miss another Q&A article! Click to subscribe: Add to Google Reader Add to My Yahoo! Subscribe in NewsGator RDF XML
Comments

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.

Posted by: Ayush Saran at January 20, 2010 10:05 AM

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

Posted by: Perth at January 23, 2010 10:27 PM

I have something to say, now that you mention it, but ...
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 for all your efforts on this Web site by buying you a cup of coffee!

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











Remember personal info?


Please note that I will never send you any unsolicited email. Ever.

While I'm at it, 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.









Recent Entries


Search
I Need Help!
Need Help? Ask Dave Taylor!


© 2002 - 2012 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.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.