Skip to Content.
Sympa Menu

en - Re: [sympa-users] Importing users with per-list options

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Cefiar <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Importing users with per-list options
  • Date: Wed, 19 Jul 2006 13:13:17 +1000

On Wednesday 19 July 2006 06:38, Dale Ghent wrote:
> Ultimately, I'd like to parse the subscribers file in ListProc,
> convert the applicable values, and generate a file of attributes that
> Sympa could parse to generate the user's subscription under Sympa. I
> have steps 1 and 2 done. I just need to find out how I should handle
> step 3.

This has been a pet peeve of mine for a while, but I've been too busy to do
anything about it.

When I imported some subscribers (from majordomo) ages ago I broke the
subscribers into each group (eg: digest), imported that group, and then used
a mysql statement to change the users that have the default delivery method
to the new delivery method for the list in question. I'd then repeat this
process for the next group of subscribers, leaving the people who will
receive normal mail till last to import.

Of course, this ONLY works if you have no subscribers in the list in the
first
place, but it avoids actually injecting the users using a mysql query. As
such, if fields get added or changed by either the Sympa folk or by an
industrious user, it's much less likely to break.

Another option (not tried) might be to manually edit the config before each
import and changing the default reception mode (as looks like the below):

default_user_options
reception digest
visibility noconceal

... to whatever you want BEFORE doing the import. I have no idea if the
import
tool honours this, but I'd be guessing it does. Of course, you may need to
restart the sympa tools to pick up the change, increment the serial number,
etc. I haven't checked any of this as it just occured to me that it might be
a way to handle the problem.

JUST remember to change it back once the list is imported!

Good luck!

--
Stuart Young - aka Cefiar - address@concealed



Archive powered by MHonArc 2.6.19+.

Top of Page