show_qfiles: 'str' object has no attribute 'as_string'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Unassigned |
Bug Description
With mailman 2.1.5 and Python 2.4 on SuSE Linux 9.3,
show_qfiles throws an error:
python show_qfiles-
=======
Traceback (most recent call last):
File "show_qfiles-
main()
File "show_qfiles-
sys.
AttributeError: 'str' object has no attribute 'as_string'
Removing the ".as_string()" from the source of
show_qfiles fixes the problem.
show_qfiles is still the same in 2.1.7 and still throws
this error. Tested with 2.1.7 and Python 2.4.1 under
SuSE Linux 10.0.
Patch:
--- show_qfiles-
22:38:46.000000000 +0100
+++ show_qfiles-2.1.7 2006-03-06 22:40:27.000000000 +0100
@@ -64,7 +64,7 @@
fp = open(filename)
if filename.
msg = load(fp)
- sys.stdout.
+ sys.stdout.
else:
[http://
Your patch will fix the show_qfiles for those entries in the Message. Message instance.
'in' queue that have unparsed message text, but it will
break it for all other entries that have a
Mailman.
Try the attached patch and see if it isn't better. Please
report back on what does and doesn't work for you.