On 06/13/2020 06:01 AM, Carlos E. R. wrote:
On 13/06/2020 11.57, Daniel Bauer wrote:
Hello,
there once was a tunderbird add-on "email address crawler" that did exactly what I wanted:
- extract all names and email addresses from all mails in /one/ folder in thunderbird and add them to a new addressbook or list
I can't find anything similar (this one doesn't work anymore and will not be updated because the author doesn't like the current add-on policy)
Do you know an add-on or any other tool that can extract that data from all mails in a thunderbird folder? I don't care if it adds to a thunderbird address book or simply writes a textfile.
I might concoct something with CLI tools if the folder is local and in mbox format (which is the default).
I would try formail, and maybe procmail. I have not done this before, so I would have to read the man page again ;-)
awk is another capable swiss-army-knife for text. Getting the To: From: names and address from your mail files is relatively trivial (implementing a full regex for matching all possible e-mail address per http://www.ietf.org/rfc/rfc5322.txt is a bit of a challenge) ... but ... and there is always a ... but ... doing anything with the thunderbird address book (abook.mab) is -- not (reasonably) possible. (unless you just happened to be one of the Mork (from Ork) developers of the undocumented Mork database format in the 80's... See: https://wiki.mozilla.org/Address_Book (clusterfsck...) Trivially, you can dump the To:/From: From:/To: address from an mbox file with: awk '/^From:/ || /^To:/' mboxfile -- David C. Rankin, J.D.,P.E.