Subject: | Outlook vcard compatibility |
Outlook uses lower case "begin:vcard" and lower case "end:vcard" tags.
I suggest the following changes in Addressbook.pm::_process_text because I couldn't find anything in the RFC that suggested case sensitivity for the begin and end tags...
sub _process_text {
my($self,$text) = @_;
# As data may handle \r - must ask richard
$text =~ s/\r//g;
# Add error checking here ?
my $asData = Text::vFile::asData->new;
$asData->preserve_params(1);
my $data = $asData->parse_lines(split("\n",$text));
foreach my $card (@{$data->{'objects'}}) {
# Run through each card in the data
if($card->{'type'} =~ /VCARD/i) { # **JC - to regexp instead of eq VCARD