>>>>> "WH" == Warren Hoffman <[EMAIL PROTECTED]> writes:

WH> 1. We're migrating ~1500 users from Lyris - and half of them have digest 
WH> specified. We have two files of subscribers - one with digest subscribers 

Make sure your lyris export script skips over unsubscribed members...
I almost had a fiasco with that ;-)

WH> 2. We'd like to import real names for each user (which we have - in the 
WH> files we extract from the old system). Is there a way to do this?

Here's the script I used to export my lyris lists.  None were using
digests, so I didn't separate the lists.  The import will fail if the
real name contains commas, so just scan for that and fix those up
before importing.  Mailman parses the names and addresses quite well.

--cut here--
#!/usr/bin/perl

use lib '/opt/lyris/apache/lib';
require 'lyrislib.pl';
&lyris::init;

unless ($ARGV[0]) { die "syntax:\nperl activemembers.pl listname\n"; }

my @Members = &lyris::MemberFromList($ARGV[0]);

foreach (@Members) {
        my %m = &lyris::MemberAttribs($_);
        if ($m{MemberType} eq 'normal') {
                print "$m{FullName} <$m{EmailAddr}>\n";
        }
}
--cut here--

I'm sure you can test the member record for digest or not and select
each category appropriately.

------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to