Configuration help typo / footer parsing (PR#209)

Bug #265288 reported by Bug Importer
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Barry Warsaw

Bug Description

Jitterbug-Id: 209
Submitted-By: <email address hidden>
Date: Wed, 15 Mar 2000 14:10:34 -0500 (EST)
Version: 1.1
OS: Redhat Linux 6.1

In the configuration help for "msg_footer", it says the
following:

web_page_url
     The mailman root URL to which, eg, 'listinfo/%(_internal_name)s can
     be appended to yield the listinfo page for the list.

check out the single quote. this caused someone on my machine to include
the single quote in their footer, like this:

%(real_name)s mailing list
%(real_name)s@%(host_name)s
%(web_page_url)'listinfo/%(_internal_name)s

Mailman stops delivering all messages to that list. It starts logging the
following:

Mar 15 08:26:38 2000 post: Traceback (innermost last):
post: File "/home/mailman/scripts/post", line 73, in ?
post: mlist.Post(msg, approved=fromusenet)
post: File "/home/mailman/Mailman/MailList.py", line 1362, in
Post
post: footer = self.msg_footer % d)
post: ValueError : unsupported format character ''' (0x27)

Sendmail logs "unknown mailer error 1".

Perhaps mailman should be a little more robust with respect to parsing
the footer?

====================================================================
Audit trail:
None

[http://sourceforge.net/tracker/index.php?func=detail&aid=214167&group_id=103&atid=100103]

Tags: web-cgi
Revision history for this message
Barry Warsaw (barry) wrote :

The exception won't happen anymore; instead you'll get an [INVALID FOOTER]
in the postings.

I've fixed the typo in the attribute's details.

Revision history for this message
Asrag (asrag) wrote :

The is is still a problem with Mailman version 2.1 I note
that a wrongly entered field

description

instead of

(description) s

caused

Aug 20 16:58:01 2001 (15078) Delivery exception: not enough
arguments for format string
Aug 20 16:58:01 2001 (15078) Traceback (innermost last):
  File "/usr/local/mailman/Mailman/Handlers/HandlerAPI.py",
line 82, in do_pipeline
    func(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Handlers/Decorate.py",
line 41, in process
    footer = string.replace(mlist.msg_footer %
d, '\r\n', '\n')
TypeError: not enough arguments for format string
____________________________________________________________

Is it possible to have an option so that if the footer
wrongly entered the mail will still go through and a
notification is sent to the list admin?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.