kphamilton wrote:
>>I used the bin/export before I added the extend.py to any of the lists and it
>retrieved all of the necessary information.
OK. That makes sense.
BTW, just for curiousity, I actually tried a partial test on the
withlist suggestion I posted, and I found problems. In case anyone
finds this in the archives and wants to try it, here's a script that
will be a little closer to working.
------------------------------------------------------------
from Mailman import mm_cfg
from Mailman.OldStyleMemberships import OldStyleMemberships
def move_members(mlist):
OSM = OldStyleMemberships(mlist)
if not mlist.Locked():
mlist.Lock()
for member in OSM.getMembers():
if mlist.isMember(member):
continue
cpmember = OSM.getMemberCPAddress(member)
digest = OSM.getMemberOption(member, mm_cfg.Digests)
password = OSM.getMemberPassword(member)
language = OSM.getMemberLanguage(member)
realname = OSM.getMemberName(member)
mlist.addNewMember(cpmember, digest=digest, password=password,
language=language, realname=realname)
mlist.setDeliveryStatus(member,
OSM.getDeliveryStatus(member))
for flag in (mm_cfg.DontReceiveOwnPosts,
mm_cfg.AcknowledgePosts,
mm_cfg.DisableMime,
mm_cfg.ConcealSubscription,
mm_cfg.SuppressPasswordReminder,
mm_cfg.ReceiveNonmatchingTopics,
mm_cfg.Moderate,
mm_cfg.DontReceiveDuplicates,
):
mlist.setMemberOption(member, flag,
OSM.getMemberOption(member, flag))
mlist.setMemberTopics(member,
OSM.getMemberTopics(member))
OSM.removeMember(member)
mlist.Save()
mlist.Unlock()
------------------------------------------------------------
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan