Carconni wrote:
>
>I have a few hundred lists. During migration some of my reply to variables
>were over written with wrong reply to address. This didn't happen to all of
>the lists but those that did have this overwrite need to be corrected. (All
>my lists have explicit reply to).
>
>For example: List [EMAIL PROTECTED] has an explicit reply to [EMAIL
>PROTECTED], List [EMAIL PROTECTED] has an explicit reply to [EMAIL PROTECTED]
>
>Now [EMAIL PROTECTED] should have an explicit reply to [EMAIL PROTECTED] but
>somehow wound up with [EMAIL PROTECTED] as it's reply to address.
>In addition, [EMAIL PROTECTED] was written to some other lists as well.
It seems from your example that just setting all your lists'
reply_goes_to_list to 'This list' would do what you want without
bothering with reply_to_address.
>Is there a way to weed out which lists have a given reply to address? I don't
>really want to walk through each list to find out which list contains the
>wrong variable.
You could put the following 3-line script:
begins on next line------------------------------------
def find_reply_to_address(mlist):
print 'List: %s: reply_to_address = %s' % \
(mlist.real_name, mlist.reply_to_address)
ends on previous line----------------------------------
in the file bin/find_reply_to_address.py and then run
bin/withlist -a -r find_reply_to_address > output_file
Of course, you could put other logic in the script to only print the
list name if reply_to_address = '[EMAIL PROTECTED]' or even to figure what the
address should be and change it, but the latter requires locking,
saving and unlocking the list in the script.
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
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/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp