LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2015, 08:27 AM   #1
arnold.pietersen
Member
 
Registered: Jul 2012
Posts: 31

Rep: Reputation: Disabled
Extracting E-Mail Addresses From Thunderbird


Hi

Any help will be appreciated.

I normally use the following line to extract e-mail addresses from my Inbox in Thunderbird:

Code:
egrep -o [A-Za-z0-9_.]*'[-]'*[A-Za-z0-9_.]*@[A-Za-z0-9_.]*[.][A-Za-z]*  < Inbox > Inbox.txt
However, I would like to extract e-mail addresses from all my Thunderbird mail files and folders, i.e recursively.

Any idea how I would go about doing that considering that the only thing the files will have in common is that they do not have an extension?

Any help will be appreciated.

Kind Regards

ARNOLD
 
Old 06-13-2015, 08:54 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Open Tbird's Address Book and export them from Tools > Export... ?

http://its.isber.ucsb.edu/guides/how...ok-thunderbird
 
Old 06-13-2015, 11:02 AM   #3
arnold.pietersen
Member
 
Registered: Jul 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Hi Habitual

Thanks for your response.

The e-mails might contain some other e-mail addresses in the body which would not have been used in a reply in order for it to be stored by Thunderbird.

I hope it make sense.

Kind Regards

ARNOLD
 
Old 06-13-2015, 02:22 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
All of the addresses I have ever "sent" through my Tbird are stored in
.thunderbird/uvpc4uva.default/ImapMail/mail.domain.com/INBOX-1 and your regex works for me like so:
Code:
egrep -o [A-Za-z0-9_.]*'[-]'*[A-Za-z0-9_.]*@[A-Za-z0-9_.]*[.][A-Za-z]* .thunderbird/uvpc4uva.default/ImapMail/mail.domain.com/INBOX-1 > Inbox.txt
Do you "see" a "[sS]ent" in your .thunderbird profile directory?
I don't see one in mine.

IMAP or POP?

Last edited by Habitual; 06-14-2015 at 08:25 AM.
 
Old 06-13-2015, 04:08 PM   #5
arnold.pietersen
Member
 
Registered: Jul 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Hi Habitual

I use POP.

Maybe to phrase it in another way.

If I have say three folders with files in them, how would one go about to extract the e-mail addresses from all the files using 1 line of code, if possible.

FOLDER 1
file 1
file 2
file 3

FOLDER 2
file 1
file 2

FOLDER 3
file 1
file 2

Obviously, the line that I am using will not working for all of them at once. I will have to do it file by file.

Any guidance will be appreciated.

Kind Regards

ARNOLD
 
Old 06-14-2015, 08:36 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Arnold:
Open your sent folder in Tbird and find an address that is uncommon that you've sent mail to.
Code:
grep <uncommon> .thunderbird/*.default -Rl
You should see some hits for the uncommon address.

Please let us know.
 
Old 06-15-2015, 08:32 AM   #7
arnold.pietersen
Member
 
Registered: Jul 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Hi Habitual

It yielded no results.

Kind Regards

ARNOLD
 
Old 06-15-2015, 12:05 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Then I am fresh out of ideas, sorry.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching Thunderbird emails & extracting information devnull10 Programming 1 06-08-2010 07:42 PM
Remove Thunderbird's Faulty Addresses alaios Linux - Software 2 05-15-2010 10:08 AM
retrieving (Windows) Thunderbird e-mail from an old Thunderbird folder newbiesforever General 1 07-13-2009 07:56 AM
How to I configure UNIX mail to e-mail messages to external addresses? Thaidog Linux - Server 2 03-05-2008 08:53 PM
How to export/import Thunderbird mail to another computer with Thunderbird mail clau_bolson Linux - Software 1 04-06-2006 01:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration