Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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

Edit, combine, distribute address lists?

more options

On Linux (Fedora 27) I have accumulated a mishmash of Address Lists. I have found these cryptic files: [dad@datium ~/.thunderbird/lla13zhr.default] $ ll *mab -rw-rw-r-- 1 dad dad 1375 Mar 8 15:07 abook.mab -rw-rw-r-- 1 dad dad 3589 Mar 8 15:07 history.mab -rw-rw-r-- 1 dad dad 12353 Mar 8 15:07 impab-1.mab -rw-rw-r-- 1 dad dad 7967 Mar 8 15:07 impab.mab

I want to edit (with a sensible editor like vi) and combine these files to have, at most, two - abook.mab and history.mab - and then disseminate the result to all my other machines.

Simple, eh? NOT - because these files have an incomprehensible (to me) structure that precludes concatenation, sorting, deduplication, etc. Why, oh why, are they not simple text files? Nevermind. They aren't.

But how, then, can I manipulate them?

On Linux (Fedora 27) I have accumulated a mishmash of Address Lists. I have found these cryptic files: [dad@datium ~/.thunderbird/lla13zhr.default] $ ll *mab -rw-rw-r-- 1 dad dad 1375 Mar 8 15:07 abook.mab -rw-rw-r-- 1 dad dad 3589 Mar 8 15:07 history.mab -rw-rw-r-- 1 dad dad 12353 Mar 8 15:07 impab-1.mab -rw-rw-r-- 1 dad dad 7967 Mar 8 15:07 impab.mab I want to edit (with a sensible editor like vi) and combine these files to have, at most, two - abook.mab and history.mab - and then disseminate the result to all my other machines. Simple, eh? NOT - because these files have an incomprehensible (to me) structure that precludes concatenation, sorting, deduplication, etc. Why, oh why, are they not simple text files? Nevermind. They aren't. But how, then, can I manipulate them?

Chosen solution

Most of us would do it in Thunderbird, using drag-and-drop to move Contacts from one address book to another.

If you want your data in an editable format, I think you'll need to export. CSV is an obvious text format option, but it loses any Mailing Lists. I think LDIF is editable but of course you'd have to be careful to maintain whatever structure and grammar it uses. LDIF does, IIRC, retain Mailing Lists.

The downside of using either CSV or LDIF is that having reorganised your data, you'll have to re-import it and that means creating a new address book for each text file you import, so you'll end up doing drag-and-drop anyway to get the data from the imported address books into the working address books.

Ler a resposta no contexto 👍 1

All Replies (2)

more options

Chosen Solution

Most of us would do it in Thunderbird, using drag-and-drop to move Contacts from one address book to another.

If you want your data in an editable format, I think you'll need to export. CSV is an obvious text format option, but it loses any Mailing Lists. I think LDIF is editable but of course you'd have to be careful to maintain whatever structure and grammar it uses. LDIF does, IIRC, retain Mailing Lists.

The downside of using either CSV or LDIF is that having reorganised your data, you'll have to re-import it and that means creating a new address book for each text file you import, so you'll end up doing drag-and-drop anyway to get the data from the imported address books into the working address books.

more options

Thank you, Zenos. Drag 'n drop editing, while tedious, wasn't as bad as I expected. I did combine qnd merge four files into two, reviewed and edited them: -rw-rw-r-- 1 dad dad 27610 Mar 9 13:40 abook.mab -rw-rw-r-- 1 dad dad 8800 Mar 9 13:39 history.mab

Then I copied these two files via NFS to another Linux computer and found that the updated address lists there matched the source.

Mission accomplished.