Majordomo just needs the email address, the full name is not necessary
(although nice). Majordomo by default will strip all information except
the mail address itself from subscribe messages. (The strip variable in
the list config file).
This should do the conversion, unless you have email addresses that have
spaces in them:
awk '{print $1}' listproc.subscribers > majordomo.subscribers
To keep the names this should work:
awk '{print $1,"\("$5,$6"\)"}' listproc.subscribers >
majordomo.subscribers
OR
awk '{print "\""$5,$6"\"","\<"$5,$6"\>"}' listproc.subscribers >
majordomo.subscribers
There are other (better) ways to do it via searching and removing the
stuff you don't want and adding things you do want using ex or sed but I
can't produce that off the top of my head. This assumes that everyone has
two, and only two fields in their "Full name".
These are the two "accepted" ways of writing a email address, and
majordomo passes the list directly to sendmail so it has to be acceptable
to it:
awk '{print $1,"\("$5,$6"\)"}' listproc.subscribers >
majordomo.subscribers
OR
awk '{print "\""$5,$6"\"","\<"$5,$6"\>"}' listproc.subscribers >
email@address (Full Name)
OR
Full Name <email@address>
The full name MUST be quoted if it contains a period (.).
Note too that majordomo also impliments digests in a very different way
from listproc (as a seperate mailing list) and you may want to take that
into account by subscribing them to the digest (if you are offering one)
version of the list.
Luck.
On Thu, 23 Jul 1998, Jama Musse Jama wrote:
>
> I have to export huge mailinglists from listproc to majordomo. My first
> question is that if majordomo needs to change the format of the file of
> subscribed members? or if it can process without problems. In case I
> should modify, I wander if there is simple way to translate the file
> containing the subscribed members info: I mean from the format
> name@mail NOACK 857994678 NO Full Name
> to
> <name@mail> Full Name
>
> If there is some patch already doing this stuff, I appreciate to know,
> otherwise i should manage it manually:-( I am new on the world of
> mailinglist servers.
>
> Thanks for any hint,
> Jama
> --------------------------------------------------------------------
> Jama Musse Jama, dott. e-mail:jama@unipi.it
> Center of Network Services for http://www.dm.unipi.it/~jama
> University of Pisa
> Pisa, Italy.
> --------------------------------------------------------------------
>
>
References:
|
|