[Mailman-Users] config_list does not finish

Mark Sapiro msapiro at value.net
Sat Mar 24 04:56:38 CET 2007


Michael McAndrew wrote:
>
>Anyone know why the following command doesn't finish?  It just hangs until I
>escape with ctrl+Z


And do you leave it in the background after that or what?


>[root at list mailman]# bin/config_list -i vawupdate/scripts/carers.config.txt carers
>
>Configuration of other lists with similar configuration files works fine.
>This seems to be an intermittent problem that occurs on some lists, and i
>don't know why.  I am using mailman 2.1.7 on Fedora 4.  Would any extra info
>be helpful?  I am stuck.  Thanks a lot.
>
>Michael
>
>Here is the config file:
>
>"""


By placing the input inside triple quotes, you make the whole thing one
string that isn't assigned to anything, so this doesn't have any
effect on the list.


>real_name = 'carers'
>moderator = []
>description = ''
>subject_prefix = '[VAW ]'
>archive_private = 0
>owner = [' lists at vawcvs.org']


I don't know that it does real harm, but I suggest you not have a
leading space in the owner email.


>new_member_options = 256
>member_moderation_action = 2
>member_moderation_notice = ''
>default_member_moderation = 0
>info = ''
>anonymous_list = False
>first_strip_reply_to = False
>reply_goes_to_list = 0
>reply_to_address = ''
>umbrella_list = False
>umbrella_member_suffix = '-owner'
>send_reminders = False
>welcome_msg = ''
>send_welcome_msg = False
>goodbye_msg = ''
>send_goodbye_msg = False
>admin_immed_notify = False
>admin_notify_mchanges = True
>respond_to_post_requests = 1
>emergency = 0
>administrivia = True
>max_message_size = 5000
>host_name = 'list.vawcvs.org'
>include_rfc2369_headers = 1
>include_list_post_header = 1
>preferred_language = 'en'
>available_languages = ['en']
>encode_ascii_prefixes = 2
>nondigestable = True
>msg_header = ''
>msg_footer = ''
>digestable = True
>digest_is_default = False
>mime_is_default_digest = False
>digest_size_threshhold = 100
>digest_send_periodic = True
>digest_header = """Daily digest for %(list_name)s"""


Actually, my comment about one string is wrong. The first string ends
at 'digest_header = '. Then there is some invalid config_list input
and the start of another string.

 
>
>digest_footer = """You have been sent this message because you


which ends here.


>are subscribed to Voluntary Action Westminster's
>%(list_name)s mailing list.
>
>To SUBSCRIBE to or UNSUBCRIBE from any of our
>mailing lists, log on to www.vawcvs.org, and
>click on 'Mailing lists'.  Alternatively,
>send an email to lists at vawcvs.org detailing
>the changes you would like us to make and
>your request will be dealt with promptly."""


and then another string starts here.


>digest_volume_frequency = 1
>advertised = True
>subscribe_policy = 2
>unsubscribe_policy = 1
>ban_list = []
>private_roster = 2
>obscure_addresses = True
>accept_these_nonmembers = []
>hold_these_nonmembers = []
>reject_these_nonmembers = []
>discard_these_nonmembers = []
>generic_nonmember_action = 3
>forward_auto_discards = False
>require_explicit_destination = True
>acceptable_aliases = ''
>max_num_recipients = 0
>header_filter_rules = []
>bounce_matching_headers = """


And ends here, and so on.


># Lines that *start* with a '#' are comments.
>to: friend at public.com
>message-id: relay.comanche.denmark.eu
>from: list at listme.com
>from: .*@uplinkpro.com"""
>bounce_processing = True
>bounce_score_threshold = 5.0
>bounce_info_stale_after = 7
>bounce_you_are_disabled_warnings = 3
>bounce_you_are_disabled_warnings_interval = 7
>bounce_unrecognized_goes_to_list_owner = True
>bounce_notify_owner_on_disable = True
>bounce_notify_owner_on_removal = True
>archive = True
>archive_volume_frequency = 1
>nntp_host = ''
>linked_newsgroup = ''
>gateway_to_news = 0
>gateway_to_mail = 0
>news_moderation = 0
>news_prefix_subject_too = 1
>autorespond_postings = 0
>autoresponse_postings_text = ''
>autorespond_admin = 0
>autoresponse_admin_text = ''
>autorespond_requests = 0
>autoresponse_request_text = ''
>autoresponse_graceperiod = 90
>filter_content = False
>filter_mime_types = ''
>pass_mime_types = """multipart/mixed
>multipart/alternative
>text/plain"""
>convert_html_to_plaintext = False
>filter_action = 0
>topics_enabled = 0
>topics_bodylines_limit = 5
>new_member_options = 256
>member_moderation_action = 2
>member_moderation_notice = ''
>topics = []
>
>"""


The extraneous triple quotes don't explain why config_list hangs. If I
feed that file to config_list, I get

Traceback (most recent call last):
  File "bin/config_list", line 362, in ?
    main()
  File "bin/config_list", line 357, in main
    do_input(listname, infile, checkonly, verbose)
  File "bin/config_list", line 263, in do_input
    execfile(infile, globals)
  File "z", line 45
    digest_header = """Daily digest for %(list_name)s"""
                           ^
SyntaxError: invalid syntax

which is exactly what I expected to get.


-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list