Menu

#483 config_list breaks at filter_mime_types

2.1 beta
closed-fixed
5
2002-08-09
2002-06-04
No

When running:

config_list -o cpunk.conf cpunk-secpro

on my list cpunk-secpro@lists.thecabal.org, I get the
following error:

(bofh:mailman) /home/mailman $ config_list -o
cpunk.conf cpunk-secpro
Traceback (most recent call last):
File "/home/mailman/bin/config_list", line 268, in ?
main()
File "/home/mailman/bin/config_list", line 261, in main
do_output(listname, outfile)
File "/home/mailman/bin/config_list", line 113, in
do_output
do_list_categories(mlist, k, None, outfp)
File "/home/mailman/bin/config_list", line 162, in
do_list_categories
lines = value.replace('\r', '').split('\n')
AttributeError: 'list' object has no attribute 'replace'

Doing a tail of the cpunk.conf file show the following:

(bofh:mailman) /home/mailman $ tail
cpunk.conf
# matching MIME major type, e.g. image. Blank lines
are ignored.
#
# After stripping message parts, any multipart
attachment that is empty
# as a result is removed all together. If the outer part's
MIME type
# matches one of the strip types, or if all of the outer
part's subparts
# are stripped, then the whole message is discarded.
Finally, each
# multipart/alternative section will be replaced by just
the first
# alternative that is non-empty after the specified types
have been
# removed.
filter_mime_types =

Discussion

  • Devin L. Ganger

    Devin L. Ganger - 2002-06-04

    Logged In: YES
    user_id=478874

    This is on Solaris 7, Python 2.2:

    (bofh:devin) /home/devin $ python -V
    Python 2.2
    (bofh:devin) /home/devin $ uname -a
    SunOS bofh.thecabal.internal 5.7 Generic_106541-14 sun4m
    sparc SUNW,SPARCsystem-600

     
  • Jay Luker

    Jay Luker - 2002-07-24

    Logged In: YES
    user_id=51347

    I'm experiencing the same problem on a debian (woody)
    install, python -V = 2.2

    I worked around it temporarily by adding a varname !=
    filter_mime_types condition to the "if" on L268.

     
  • Devin L. Ganger

    Devin L. Ganger - 2002-07-24
    • assigned_to: nobody --> bwarsaw
     
  • Barry Warsaw

    Barry Warsaw - 2002-08-09
    • status: open --> closed-fixed
     
  • Barry Warsaw

    Barry Warsaw - 2002-08-09

    Logged In: YES
    user_id=12800

    I believe this is fixed in current cvs and will be part of
    2.1b3.

     

Log in to post a comment.