Convert::Addressbook::Mozilla2Blackberry 0.0.1 review

Download
by rbytes.net on

Convert::Addressbook::Mozilla2Blackberry is a Perl extension for converting a CSV comma delimited addressbook from Mozilla to Blackbe

License: GPL (GNU General Public License)
File size: 5K
Developer: John Constable
0 stars award from rbytes.net

Convert::Addressbook::Mozilla2Blackberry is a Perl extension for converting a CSV comma delimited addressbook from Mozilla to Blackbery csv import format.

SYNOPSIS

use Mozilla::Mork;
use Convert::Addressbook::Mozilla2Blackberry;

#get the file from the command line or quit with an error
$file = $ARGV[0];
unless ($file) { die "Useage: $0 n"; }

#access the address book and setup the memory structure
my $MorkDetails = Mozilla::Mork->new($file);

#get a reference to an array of hash's
my $results = $MorkDetails->ReturnReferenceStructure();
#create an instance of the converter code
my $converter = Convert::Addressbook::Mozilla2Blackberry->new();
#print the Blackberry File headers
$converter->PrintBlackberryHeaders();

#process those results
# for each line in the database
# each line in the database corresponds to an address book record
# pass this reference to the StreamConvert routine which will
# convert and print it

for my $record_array ( @{$results} )
{
$converter->StreamConvert($record_array);
}

This is a module that builds on the Mozilla::Mork module to translate the Mozilla address book to a CSV format suitable for importing into a Blackberry via the Desktop Manager (i.e. even the CSv fields are in the correct order).

Requirements:
Perl

Convert::Addressbook::Mozilla2Blackberry 0.0.1 keywords