LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 12-23-2023, 12:43 PM   #1
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Rep: Reputation: 21
Thunderbird Address Book location


Linuxmint 21.2 Cinnamon
Where is the Thunderbird address book located in the file system?
 
Old 12-23-2023, 04:09 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by borgward View Post
Linuxmint 21.2 Cinnamon
Where is the Thunderbird address book located in the file system?
It should be in a file named abook.sqlite
It's located at ~/.thunderbird/<some random string>/abook.sqlite

Regards
 
Old 12-23-2023, 07:53 PM   #3
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
What do I read t with?
 
Old 12-23-2023, 08:49 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Based on the file name, some sort of SQL engine, that is, a program to parse SQL databases.

If you want to open it, it might be a good idea to make a copy, then work with the copy.
 
Old 12-24-2023, 01:50 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by borgward View Post
What do I read t with?
Use sqlite3 to export it in sql:
Code:
sqlite3 ~/.thunderbird/<some random string>/abook.sqlite .dump > address.sql
 
Old 12-24-2023, 09:28 AM   #6
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
sqlite3 ~/.thunderbird/svyc3qyi.default-release /abook.sqlite .dump > address.sql
Error: unable to open database "/home/tom/.thunderbird/svyc3qyi.default-release": unable to open database file

also tried:
~$ sqlite3 ~/.thunderbird/svyc3qyi.default-release /abook.sqlite-wal .dump > address.sql
Error: unable to open database "/home/tom/.thunderbird/svyc3qyi.default-release": unable to open database file

I had to install sqlite3. After the above attempts I restarted the computer but still got the same results.
 
Old 12-24-2023, 11:23 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by borgward View Post
sqlite3 ~/.thunderbird/svyc3qyi.default-release /abook.sqlite .dump > address.sql
Error: unable to open database "/home/tom/.thunderbird/svyc3qyi.default-release": unable to open database file

also tried:
~$ sqlite3 ~/.thunderbird/svyc3qyi.default-release /abook.sqlite-wal .dump > address.sql
Error: unable to open database "/home/tom/.thunderbird/svyc3qyi.default-release": unable to open database file

I had to install sqlite3. After the above attempts I restarted the computer but still got the same results.
There is a blank space after svyc3qyi.default-release in the path to abook.sqlite above (i.e. /home/tom/.thunderbird/svyc3qyi.default-release /abook.sqlite).
I don't know if it should exist there, so check carefully if you use the correct path to abook.sqlite.

Also it could be that you don't have permissions to read that file.
What gives:
Code:
ls -l ~/.thunderbird/svyc3qyi.default-release/abook.sqlite
 
Old 12-24-2023, 11:28 AM   #8
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
tom@tom-iMac:~$ ls -l ~/.thunderbird/svyc3qyi.default-release/abook.sqlite
-rw-r--r-- 1 tom tom 262144 Dec 23 12:20 /home/tom/.thunderbird/svyc3qyi.default-release/abook.sqlite

tom@tom-iMac:~$ sudo sqlite3 /home/tom/.thunderbird/svyc3qyi.default-release/abook.sqlite .dump > address.sql
tom@tom-iMac:~$
Nada!

tom@tom-iMac:~$ sudo sqlite3 /home/tom/.thunderbird/svyc3qyi.default-release /abook.sqlite .dump > address.sql
Error: unable to open database "/home/tom/.thunderbird/svyc3qyi.default-release": unable to open database file
 
Old 12-24-2023, 11:58 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
tom@tom-iMac:~$ sudo sqlite3 /home/tom/.thunderbird/svyc3qyi.default-release/abook.sqlite .dump > address.sql
tom@tom-iMac:~$
Nada!
No nada! That worked!

Check the file address.sql created in the directory from where you ran the sqlite3 command.
Apparently the blank space in the abook.sqlite path is the culprit.

Last edited by bathory; 12-24-2023 at 12:19 PM. Reason: typo
 
Old 12-24-2023, 12:30 PM   #10
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
without space:
tom@tom-iMac:~$ sqlite3 /home/tom/.thunderbird/svyc3qyi.default-release/abook.sqlite .dump > address.sql
Nothing returns

With space:
tom@tom-iMac:~$ sqlite3 /home/tom/.thunderbird/svyc3qyi.default-release/ abook.sqlite .dump > address.sql
Error: unable to open database "/home/tom/.thunderbird/svyc3qyi.default-release/": unable to open database file

Which space? / abook.sqlite or abook.sqlite .dump ?
 
Old 12-24-2023, 12:43 PM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
tom@tom-iMac:~$ sqlite3 /home/tom/.thunderbird/svyc3qyi.default-release/abook.sqlite .dump > address.sql
Nothing returns
Nothing returns, means that the command output is written in the address.sql file!!!

If you want to see the output just omit the redirection:
Code:
sqlite3 /home/tom/.thunderbird/svyc3qyi.default-release/abook.sqlite .dump
 
Old 12-24-2023, 12:52 PM   #12
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
That worked.
 
Old 12-24-2023, 03:54 PM   #13
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by borgward View Post
That worked.
Of course it did!
I thought that you knew the meaning of ">", i.e. redirecting a command output to a file

Anyway, you can mark the thread "Solved" from the "Thread Tools" on top of the page.

Cheers
 
Old 12-24-2023, 04:27 PM   #14
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
No, I did not know the meaning of > . was going to ask. It directs command output to a file. A | directs output to another command.
 
  


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
LXer: Google I/O Android News: Location, Location, Location (Plus Cloud Messaging and Bluetooth) LXer Syndicated Linux News 0 06-05-2013 01:00 PM
How to automatically add an address to the address book in Thunderbird royeo Linux - Newbie 2 09-04-2006 03:51 PM
Importing CVS address book from outllok to thunderbird waelaltaqi Linux - Software 0 10-27-2005 10:53 AM
Thunderbird address book disaster. linmix Linux - Software 3 10-18-2005 11:26 AM
location, location, location! mermxx LQ Suggestions & Feedback 9 09-25-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 11:55 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