X-Git-Url: http://git.jankratochvil.net/?p=PerlMail.git;a=blobdiff_plain;f=contacts-n9k2mutt;h=ee4d9ad5f829ccbeefee17d5029db47c3ed59ad8;hp=493d0d3d0cd7677651f23ae37a2c59b045defcee;hb=8dbc021592be6992b33afbee6b9d91d1990766bf;hpb=eafa2867cd90945b429ab07e3d844377a580ce97 diff --git a/contacts-n9k2mutt b/contacts-n9k2mutt index 493d0d3..ee4d9ad 100755 --- a/contacts-n9k2mutt +++ b/contacts-n9k2mutt @@ -1,6 +1,22 @@ #! /usr/bin/perl -# -# $Id$ +# +# $Id$ +# Copyright (C) 2002-2003 Jan Kratochvil +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + use vars qw($VERSION); $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; }; @@ -8,7 +24,7 @@ use strict; use warnings; require Getopt::Long; -require Contacts; +require PerlMail::Contacts; require Mail::Address; @@ -34,7 +50,7 @@ while (<>) { "iscompany"=>($record{"Name"} && $record{"Company"} && $record{"Name"} eq $record{"Company"}), })); } @record); - } PrecislovaniLace::Contacts->import($_)); + } PerlMail::Contacts->import($_)); my @nicked=map({ my $data=$_; my($name,$mail,$attr,$iscompany)=map(($data->{$_}),qw(name mail attr iscompany));