Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Dump Evolution address book

by greenFox (Vicar)
on Jun 03, 2005 at 08:03 UTC ( [id://463161]=CUFP: print w/replies, xml ) Need Help??

This script extracts the contact information out of an Evolution address book database. The output is in VCard format. I found a few different Python versions of this around but nothing in Perl so I wrote my own :) Once I decide what I am going to do with the data I will write some munging code.
#!/usr/bin/perl -w use strict; use DB_File; my $db_file = "./addressbook.db"; my %db=(); dbmopen(%db, $db_file, 0666) or die "Can't open DB_File $db_file : $!\ +n"; for my $key (keys %db){ for my $data (split /\n/, $db{$key}){ print "$data \n"; } } dbmclose(%db);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://463161]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-26 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found