[Mailman-Users] a question about content-filtering

liste yoneticisi listeyon at metu.edu.tr
Mon Mar 10 08:48:23 CET 2008


On Fri, 7 Mar 2008, Mark Sapiro wrote:

Brad Knowles wrote:

>On 3/7/08, Mark Sapiro quoted liste yoneticisi <listeyon at metu.edu.tr>:
>
>>>Is there a patch that giving information for filtered extension.
>>>
>>>  I mean i am filtering *.mpg for example.
>>>  If someone sends an attachment with mpg extension, e-mail is delivered
>>>  without attachment and without any information about filtering.
>
>	[ ... deletia ... ]
>
>>  It is certainly possible, but as far as I know, there is no published
>>  patch for it.
>
>What about scrub_nondigest?  Wouldn't that do what the OP was asking for?


>Possibly. If the OP is willing to turn off content filtering or limit
>it to collapse_alternatives and then have all non-text/plain and
>characterset unknown parts stored and replaced with hyperlinks in the
>delivered posts, then yes, scrub_nondigest would do it.

Actually I just want a vissible message for deleted/filtered attachments.

You once sent a patch cok uppercase attachments.(I copied below) Is it
possible to add a command in order to add message (or information) to a
suitable part of this file??

But i don't know the the programming language for mailman.

Thank you fot your consideration and cooperation.

"""
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:]
         else:
             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