[Mailman-Users] a question about content-filtering

Mark Sapiro msapiro at value.net
Fri Oct 5 03:11:34 CEST 2007

liste yoneticisi wrote:
>pass_filename_extensions = """doc
>But i have a problem, if someone sends a document with file name qwe.JPG
>mailman doesn't send the attachment.
>I couldn't add the Capital letter extensions. Mailman converts them to
>lower letter.

The conversion of *_filename_extensions to lower case is intentional,
but we neglected to convert the actual extension in the message to
lower case for comparison.

The following patch will be in Mailman 2.1.10 and will fix the problem.

--- Mailman/Handlers/MimeDel.py 2005-12-30 18:50:08 +0000
+++ Mailman/Handlers/MimeDel.py 2007-10-05 01:01:24 +0000
@@ -256,4 +256,4 @@
             fext = fext[1:]
             fext = ''
-    return fext
+    return fext.lower()

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