This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to Move Address Books and Filters to Another PC

  • 13 replies
  • 0 have this problem
  • 68 views
  • Last reply by Toolworker

more options

How do I move all my message filters and address books from my Windows desktop PC to my Windows laptop?

I have three email accounts and ten address books. (The message filters use the address books to sort messages into folders.)

There are a bunch of abook* files in the root directory of the profile. Is it sufficient to move these to the laptop, or are they indexed somewhere?

There are msgFilterRules.dat files in many subfolders of Mail and ImapMail. Is it sufficient to move all of these into the corresponding folders on the laptop?

Is there an easier way to do either of these?

How do I move all my message filters and address books from my Windows desktop PC to my Windows laptop? I have three email accounts and ten address books. (The message filters use the address books to sort messages into folders.) There are a bunch of abook* files in the root directory of the profile. Is it sufficient to move these to the laptop, or are they indexed somewhere? There are msgFilterRules.dat files in many subfolders of Mail and ImapMail. Is it sufficient to move all of these into the corresponding folders on the laptop? Is there an easier way to do either of these?

Chosen solution

If you just copy those two and overwrite the existing files, the Personal Address Book and Collected Addresses will be updated.

Read this answer in context 👍 0

All Replies (13)

more options

The two default address books, abook.sqlite and history.sqlite (Personal Address Book and Collected Addresses) can be copied to the new profile, overwriting the existing files. Others, such as abook-1.sqlite can be imported from Tools/Import.

The msgFilterRules.dat files can be copied to account subfolders of Mail and ImapMail.

more options

Thanks! Can abook.sqlite and history.sqlite also be imported, while I'm at it?

Do the other existing address books have to be deleted from the laptop before importing the ones from the desktop, or will they overwrite what exists?

more options

If you already have abook.sqlite and history.sqlite in the new profile, the ones from the old profile can be imported the same as other sqlite files. To be safe, rename e.g. abook.sqlite to abookOLD.sqlite before importing. Do the same with others to keep the new and old imports separate. Afterwards, books can be organized by drag and drop of contacts.

more options

The problem with importing the sqlite files is that it asks which address book to import each one into.

And there are several new address books in the desktop that are not in the laptop.

I take it the address books are indexed somewhere, so that all the sqlite files can not just be copied over?

more options

When you import a sqlite file, choose 'new directory' as in the picture, so a new address book is created in Address Book, in this example with the name abookOLD. You can only copy abook.sqlite and history.sqlite directly into the new profile, if you don't need the existing ones; the other sqlite files must be imported as shown.

more options

So I guess the process will be, for each address book:

  1. Import, say, abook-10.sqlite.
  2. Figure out which of my existing address books it is.
  3. Delete that existing book, if it already exists on the laptop.
  4. Rename abook-10 to the name I just deleted, or didn't find.

Do you happen to know where the names of the address books are stored?

more options

If you open Config. editor in Settings/General, and enter the address book name, e.g. testbook, in the search, you will find a preference ldap_2.servers.testbook.filename with the value of the name of the sqlite file, e.g. abook-2.sqlite.

more options

An associated question:

Normally I use TB on my PC. When I travel, I want to move the address books and filters to the laptop. Then when I return, I want to move any that have changed back to the PC.

No accounts have been added since the TB installation was copied to the laptop.

So, if I understand this, abook.sqlite, history.sqlite and msgFilterRules.dat, if they have changed, can just be copied over.

For each changed abook-n.sqlite, if it does not correspond to the same address book on the source and destination computer, it has to be imported and renamed.

If it does correspond to the same address book on the source and destination computer, can it just be copied over, or does it also have to be imported and renamed?

more options

The only books that can be copied over are abook.sqlite and history.sqlite. The others can only be transferred by importing.

To avoid having to transfer address books between devices, consider using a network source like Google Contacts that can be added as a CardDAV address book, and synced between all devices. Other providers can be synced the same way with the TbSync add-on.

more options

Thanks!

What would happen if I only copied abook.sqlite and history.sqlite, and none of the other sqlite files?

more options

Chosen Solution

If you just copy those two and overwrite the existing files, the Personal Address Book and Collected Addresses will be updated.

more options

Then I'll simplify: Just copy abook.sqlite, history.sqlite and any changed msgFilterRules.dat files.

I use filters to sort incoming mail into folders. If I have a folder called Club, say, I make an address book Club and a filter that puts email addresses in that address book into the Club folder.

Not copying the other abooks only means that when I see a sender in Inbox who belongs in Club, I'll have to put their address into Club once on each computer.

more options

I could also copy the entire Thunderbird directory from the PC to the laptop on leaving, and then copy it back on returning. Would that work?

If that's done once, then as long as no new address books are added, the abook-*.sqlite filenames would be the same for address books on both machines. But they would still have to be moved by importing, correct? Just that I would have a permanent list for which address book to import each one into.