First time question
Hi,
First question to this list. Excuse ignorance.
I have about 2000 subscribers in a larger list where the address @XXXX has been changed by a school district to @YYYY.
The @XXXX used to automatically redirect to @YYYY but this is stopping soon.
Is there a way I can globally change the 2000 email addresses from @XXXX to @YYYY?
Best wishes, Bill Healy BSc BA Dip Ed CEO
Message me directly for assistance +61 (0)413 425 374
Kilbaha Pty Ltd (Est. 1978) ABN: 47 065 111 373 *https://kilbaha.com.au https://kilbaha.com.au* *Providing Quality Resources to Schools and Parents since 1978 https://kilbaha.com.au*
- Kilbaha helps schools
- to teach better
- by providing quality educational content
- so that students get higher grades.
*Download the Kilbaha Catalogue here.* *https://kilbaha.com.au/kilbaha.pdf https://kilbaha.com.au/kilbaha.pdf*
I did this once. There may be a simple way in Mailman, with the withlist function in (for me) /usr/lib/mailman/bin. But I did not want to risk that, so I just did the simple thing.
./list_members LISTNAME | grep XXXX > tmp1 (or try @XXXX, which may be better) then I edit tmp1 (with emacs, for example, changing @XXXX to @YYYY I save this as tmp2 Then I go to the Membership Management section of the list administration page and enter tmp1 into "Mass removal" and remove them then enter tmp2 into "Mass subscription" and subscribe them. The reason I use the web interface is that I can control who gets notified of what. You can alternatively use the functions add_members and remove_members, but I wasn't sure who they would notify. (Perhaps nobody, which would be ideal.)
To get help files for these functions, just run the function with no arguments, e.g., ./add_members, assuming that your working directory is /usr/lib/mailman/bin
Jon
On 06/13/21 16:24, Bill Healy wrote:
Hi,
First question to this list. Excuse ignorance.
I have about 2000 subscribers in a larger list where the address @XXXX has been changed by a school district to @YYYY.
The @XXXX used to automatically redirect to @YYYY but this is stopping soon.
Is there a way I can globally change the 2000 email addresses from @XXXX to @YYYY?
Best wishes, Bill Healy BSc BA Dip Ed CEO
Message me directly for assistance +61 (0)413 425 374
Kilbaha Pty Ltd (Est. 1978) ABN: 47 065 111 373 *https://kilbaha.com.au https://kilbaha.com.au* *Providing Quality Resources to Schools and Parents since 1978 https://kilbaha.com.au*
- Kilbaha helps schools
- to teach better
- by providing quality educational content
- so that students get higher grades.
*Download the Kilbaha Catalogue here.* *https://kilbaha.com.au/kilbaha.pdf https://kilbaha.com.au/kilbaha.pdf*
Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-leave@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
-- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: https://www.sas.upenn.edu/~baron Editor: Judgment and Decision Making (http://journal.sjdm.org)
Bill Healy wrote:
The @XXXX used to automatically redirect to @YYYY but this is stopping soon.
Is there a way I can globally change the 2000 email addresses from @XXXX to @YYYY?
Depends. If you have no digest members, full names, subscribers who get no mail (check by comparing list_members -r, list_members -f, list_members -n) or can you ignore that stuff and do not care about preserving passwords etc then I would try something like this:
#make a backup first list_members listname | grep @XXXX > /tmp/adresses remove_members -N -f /tmp/adresses # edit /tmp/adresses and replace @XXXX by @YYYY add_members -r /tmp/adresses
If this is not what you need then clone_member is probably the tool you need. But I never tried this myself. Start again with
#make a backup first list_members listname | grep @XXXX > /tmp/adresses # edit /tmp/adresses so that every line of the form # name@XXXX # is changed to # clone_member -r name@XXXX name@YYYY # in vim I would try something like :%s/\(.*\)@XXXX/clone_member -r \1@XXXX \1@YYYY/ sh /tmp/adresses
If all else fails, tell the teacher that its a good exercise in computer science for the pupils if they change their address themselves (Probably switch on monthly reminders). :-)
-- \ J. Dollinger FAW/n Ulm |zeitnot@irc| http://www.home.pages.de/~zeitnot/ \ "What're quantum mechanics?" -- "I don't know. People who / \ repair quantums, I suppose." (Terry Pratchett, Eric) /
On 6/12/21 11:24 PM, Bill Healy wrote:
Is there a way I can globally change the 2000 email addresses from @XXXX to @YYYY?
See the script at https://www.msapiro.net/scripts/change_member_address.py
The method suggested by Jon Baron1 will work but will resubscribe the user's new addresses with default settings.
The method suggested by Juergen Dollinger2 is better but (to me at least) more complex that the above script.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
Bill Healy
-
Jon Baron
-
Juergen Dollinger
-
Mark Sapiro