Skip to Content.
Sympa Menu

en - Re: [sympa-users] import large list in sympa

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Fil <address@concealed>
  • To: Anton Slabbinck <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] import large list in sympa
  • Date: Fri, 26 Jan 2001 14:52:05 +0100



More checking the perl script: the one I gave did not work when people had
no name. Here's something better

#!/usr/bin/perl
$v=0;
$n=0;
while(<>){
$n++;
if (($email,$name) = /([^ ]+\@[^ ]+)\s*(.*)\n/){
$v++;
print "email $email\n";
print "gecos $name\n";
print "reception mail\nvisibility conceal\n\n";
} else {
print STDERR "ERROR line $n:".$_;
}
}
print STDERR "Seen $v addresses in $n lines\n";





Archive powered by MHonArc 2.6.19+.

Top of Page