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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2010, 11:12 AM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
wanting file format for Evolution "address book"


I have a large contact list that I want to integrate with Evolution address book. I'd prefer to avoid 40K clicks to fill the new contact form so I thought I would
  • create a data file in "address book" format
  • "connect" this data file to Evolution as an extra "address book"

Thanks,
~~~ 0;-Dan
 
Old 05-21-2010, 12:22 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It sounds like you're probably looking for "VCard format":
http://en.wikipedia.org/wiki/VCard
 
1 members found this post helpful.
Old 05-22-2010, 11:16 AM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Thanks (oops, I need to click the "thanks" button) for the vcard link. I saw that the addressbook.db file contained vcards, but there was also loads of other non-vcard binary as a header and scattered in the file. Can you tell me what this binary is all about?

~~~ 0;-Dan
 
Old 05-22-2010, 12:34 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I saw that the addressbook.db file contained vcards
So, your "address book" appears to be in some sort of database format.
Q: Which database application created this .db file?

You need to use that database application to extract only the information you require (eg only the vcard parts) and save that to a text file. You should then be able to import that file into evolution. Check evolution's Import feature for the formats it accepts (File - Import ... Import a single file .. File Type).
Quote:
but there was also loads of other non-vcard binary as a header and scattered in the file.
Without telling us what the database application that created this file is, and how it was originally set up, I don't think we can help much more at the moment.
"Binary stuff"* really doesn't belong in an address book, unless perhaps it relates pictures of people, (and even then, I'd argue that they don't belong in the address book).

* But it might belong in a .db file and be relevant ( checksums, indexes, access-rights ... ) to the database application that created the file in the first place.
 
Old 05-22-2010, 12:42 PM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

"addressbook.db" is a BerkeleyDb database that stores information (including VCard records) for Evolution:

Quote:
http://en.wikipedia.org/wiki/Berkeley_DB

Evolution - A free/open source mail client; contacts are stored in addressbook.db using Berkley DB
'Hope that helps .. PSM
 
1 members found this post helpful.
Old 05-22-2010, 01:51 PM   #6
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by paulsm4 View Post
...
"addressbook.db" is a BerkeleyDb database that stores information (including VCard records) for Evolution:
This is tres useful!! I have files of vcards and can create new files of vcards starting with spreadsheet contact data.

Are utilities part of Evolution's package but that do not appear internal to the email reader program? Do I need the BerkeleyDB package for "import" or "convert" utilities? (I found db4.6-util and db4.7-util with Synaptic.)

Why do I feel like I'm inventing new features when this operation seems to be commonplace need.

~~~ 0;-Dan

Last edited by SaintDanBert; 05-22-2010 at 01:53 PM.
 
Old 05-22-2010, 02:08 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
"addressbook.db" is a BerkeleyDb database that stores information (including VCard records) for Evolution
Thank you for that information
In that case, why doesn't he just import it into evolution? It should understand the database structure. No?

[Off topic] I am interested in this thread, because I hate KDE4, so moved to gnome, and evolution as my email client (as of two days ago). I am working out how to move my many MB of mail from kmail (much-loved KDE3.x) to evolution [Legal-related mails - I need to keep it for a bit longer].

I have never used evolution before, but so far, so good, although it takes time to move my emails from kmail: Convert MDir to MBox, Export, Import, reindex... wait. But it seems to be working
[/Off topic]
 
Old 05-22-2010, 02:28 PM   #8
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by tredegar View Post
Thank you for that information
In that case, why doesn't he just import it into evolution? It should understand the database structure. No?
I have contact data in a wide variety of formats -- spreadsheets,
delimited files, document files, text files, vcards, files-of-vcards, and so on.

I want to generate Evolution address book files from whatever I have.
Thus my request for the Evolution file format. Armed with the required file format, I can read-from what I have and write-to that format. Now that I know about BerkeleyDB, there may be existing utils for what I want to accomplish.

I've mostly decided that I want:
  • create address-book file
  • read vcard
  • insert into address-book
  • close address-book file

Contacts stored as vcards have their own value so I'll likely move
my raw data into vcards from whatever I already have. I might
also use some "contact manager" (win-dose folks use ACT! or similar).
The web is covered up with vcard<-->xls utilities. I have not settled on which I'll use, but discussion of that is also fair game here.

Cheers,
~~~ 0;-Dan
 
Old 05-22-2010, 08:07 PM   #9
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, SaintDanBert -

ALSO:

Your sig. I like it!

The quote is by John Adams (the Founding Father, not the composer ):
Quote:
I must study politics and war that my sons may have liberty to study mathematics and philosophy. My sons ought to study mathematics and philosophy, geography, natural history, naval architecture, navigation, commerce and agriculture in order to give their children a right to study painting, poetry, music, architecture, statuary, tapestry, and porcelain.

Letter to Abigail Adams, May 12, 1780.

Last edited by paulsm4; 05-22-2010 at 08:08 PM.
 
Old 05-23-2010, 05:32 AM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I searched on BerkeleyDb and I do not think you want to write a utility to create this file from scratch, or modify it ( the tools already exist, they are "BerkeleyDb" which is incorporated into evolution ).

Quote:
I've mostly decided that I want:

* create address-book file
Then please try this:

Open evolution.
The file is created at /home/username/.evolution/addressbook/local/system/addressbook.db
if it does not already exist.
Quote:
* read vcard
* insert into address-book
Open evolution
File - Import ... Import a single file .. Set the File Type to vcard
Set the filename to the /path/to/your/vcard/file
Forward.
The vcard file is imported into your addressbook.db and added to the existing addresses.
Quote:
* close address-book file
Close evolution

If you have address data in other formats, evolution can either import them directly ( eg MS Outlook Personal Folders, *.pst ) or you can use your own utilities to convert them to vcard, CSV or some other format that evolution will handle.
 
Old 05-23-2010, 05:07 PM   #11
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by tredegar View Post
...
Open evolution
File - Import ... Import a single file .. Set the File Type to vcard
Set the filename to the /path/to/your/vcard/file
Forward.
The vcard file is imported into your addressbook.db and added to the existing addresses.

Close evolution
...
When I do this, the resulting contact data in Evolution is not useful.
The import presumes details about the delimited file being imported
and stuffs contents where they don't belong. You get no warning from Evolution that the data did not line up well or properly. On one hand it makes sense that you would export contact data to CSV from one application and import that data into Evolution. Other applications present a column of source fields and target fields and enable end-user direction of which source data goes into which fields. It is this matching -- random spreadsheet data to data evolution will digest -- that I cannot find.

Let me try a different approach:
Does anyone have a mySQL or similar database schema for a reasonably complete V-Card?

I know that I could pick fields from a spreadsheet (CSV) to load into mySQL and from there write a V-Card "report."

Bulk load of contact data into Evolution should not be this hard.
~~~ 0;-Dan
 
Old 06-02-2010, 02:24 PM   #12
ssivil
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
The description for 'openoffice.org-evolution' in the synaptic package manager reads:

"This package allows OpenOffice.org to access Evolution address books.
You need to install evolution separately."

I installed this package and still can't figure out how to use it. Because OpenOffice database is installed with this option (if it's isn't already), you would think you could use their database. I haven't found a way.

Hope this helps.
 
Old 01-10-2011, 06:15 PM   #13
neuromancer_ita
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
You can dump the content of the berkeley db file with the dbdump utility
dbdump addressbook.db -p > /home/username/dbdump
 
  


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
bulk load Evolution "address book" SaintDanBert Linux - Software 0 05-19-2010 04:35 PM
[SOLVED] Exaile crashes with "glib.GError: Couldn't recognise the image file format for file" cantab Arch 2 10-30-2009 06:35 PM
gdb "not in executable format: File format not recognized" tcma Programming 9 07-18-2007 06:02 AM
Western Digital My Book Ext3 format reports "Ext3-fs: Journal inode is deleted" ChronusDark Linux - Desktop 3 10-31-2006 03:56 PM
KDE 3.2 Print Problem "File Format is not directly supported" forgox Debian 0 09-22-2004 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:09 PM.

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