为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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.