From: short <> Date: Sat, 12 Oct 2002 02:13:20 +0000 (+0000) Subject: Fixed missing mail-attributes for the true nicks X-Git-Tag: bp_lace~85 X-Git-Url: http://git.jankratochvil.net/?p=PerlMail.git;a=commitdiff_plain;h=0a5d1d37f2edaa846e2c02e926006a249dad4ac8 Fixed missing mail-attributes for the true nicks --- diff --git a/contacts-n9k2mutt b/contacts-n9k2mutt index d964139..8063692 100755 --- a/contacts-n9k2mutt +++ b/contacts-n9k2mutt @@ -43,8 +43,11 @@ while (<>) { push @nicks,$1 while $name=~s/"([^"]*)"//s; $name=~s/\s*$//s; $name=~s/^(\w+)\s+(\w+)$/$2 $1/s if !$iscompany; - (my $nick=$name.(!$attr ? "" : ".$attr"))=~s/\s+/./gs; - push @nicks,$nick; + push @nicks,$name; + for (@nicks) { + $_.=".$attr" if $attr; + s/\s+/./gs; + } map({ "nick"=>$_, "obj"=>Mail::Address->new($name,$mail),