為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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?

被選擇的解決方法

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.

從原來的回覆中察看解決方案 👍 1

所有回覆 (2)

more options

選擇的解決方法

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.