Re: [Mailman-Users] Content Filtering Question

2015-02-21 Thread Bryan Carbonnell
Thanks Mark.

Bryan
On Feb 19, 2015 5:54 PM, "Mark Sapiro"  wrote:

> On 02/19/2015 09:48 AM, Bryan Carbonnell wrote:
> > I am running 2.1.14 currently, and was wondering is there a way to
> > filter emails based on the content of the body?
>
>
> Not in Mailman as shipped, but see the FAQ at
>  for info on implementing a custom
> handler and a skeleton example of one that can do this.
>
> --
> Mark Sapiro The highway is for gamblers,
> San Francisco Bay Area, Californiabetter use your sense - B. Dylan
> --
> Mailman-Users mailing list Mailman-Users@python.org
> https://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Security Policy: http://wiki.list.org/x/QIA9
> Searchable Archives:
> http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe:
> https://mail.python.org/mailman/options/mailman-users/carbonnb%40gmail.com
>
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content Filtering Question

2015-02-19 Thread Mark Sapiro
On 02/19/2015 09:48 AM, Bryan Carbonnell wrote:
> I am running 2.1.14 currently, and was wondering is there a way to
> filter emails based on the content of the body?


Not in Mailman as shipped, but see the FAQ at
 for info on implementing a custom
handler and a skeleton example of one that can do this.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content Filtering Question

2015-02-19 Thread Bryan Carbonnell
I am running 2.1.14 currently, and was wondering is there a way to
filter emails based on the content of the body?

I see different ways to filter based on headers, but not the actual
content of the body.

Basically I'm trying to filter mail to lists that have inappropriate
language in them.

I'm not adverse to upgrading if the newer versions have that capability.

Thanks,
-- 
Bryan Carbonnell - carbo...@gmail.com
Life's journey is not to arrive at the grave safely in a well
preserved body, but rather to skid in sideways, totally worn out,
shouting "What a great ride!"
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content Filtering

2012-11-26 Thread Stephen J. Turnbull
Roger Richmond writes:

 > I have had a problem with Mailman  stripping out MS Word documents, and have
 > partially solved it by adding "application/msword" to the pass mime types
 > section.  However, Mailman still strips out documents created in Office 2007
 > and later, with the .docx extension.

The general approach is to look at the original mail containing the
documents in a text editor (or Gmail's "Show Original") and search for
the Content-Type headers.  They'll look something like this:

Content-Type: 
application/vnd.openxmlformats-officedocument.wordprocessingml.document; 
name="some junk from the boss"

Most likely that's the one you want most.  Add

application/vnd.openxmlformats-officedocument.wordprocessingml.document

to Pass Mime Types and you'll probably get most of them.  However, not
all mail programs conform to the registered types.  There may be
others you want to catch, but you'll have to investigate them
yourself I suspect.
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content Filtering

2012-11-26 Thread Roger Richmond
I have had a problem with Mailman  stripping out MS Word documents, and have
partially solved it by adding "application/msword" to the pass mime types
section.  However, Mailman still strips out documents created in Office 2007
and later, with the .docx extension.

 

Any ideas how I can allow these please?

 

My pass mime types are:

multipart

text

text/html

text/plain

image

application/pdf

application/msword

 

My filter filename extensions are :

exe

bat

cmd

com

pif

scr

vbs

cpl

 

Collapse alternatives and convert html to plain text are both set to yes.

 

Many thanks,

 

Roger Richmond

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content Filtering

2012-10-19 Thread Mark Sapiro
Roger Richmond wrote:
>
>Pass Mime Types-
>
>multipart
>
>multipart/mixed
>
>multipart/alternative


The above two lines are redundant because you are alreaty accepting all
multipart types with the first line.


>text/plain
>
>image


You are accepting attached images. This means any message with an
attached image will be multipart after content filtering and will
result in the footer being added as an attachment to those messages.


[...]
>Edit collapse alternatives and Edit convert HTML are both YES.
>
> 
>
>The problem - one of the recipients' messages keeps bouncing with this error
>message:
>
>The attached message matched the ukmastocytosissupport_ukmasto.org mailing
>list's content filtering rules and was prevented from being forwarded on to
>the list membership.  You are receiving the only remaining copy of the
>discarded message.


The message being bounced is a text/html message as opposed to a
multipart/alternative message with text/plain and text/html
alternatives. Since you don't accept text/html, the entire message is
filtered out.

You want to add text/html to the pass_mime_types list. Doing so will
accept this message and convert it to text/plain. It won't affect
multipart/alternative messages as they are already being collapsed to
the first (text/plain) part.

Note that if you encounter problems with the conversion of HTML to
plain text, see the FAQ at
.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content Filtering

2012-10-19 Thread Roger Richmond
Hello all.  

 

I'm list administrator for a new UK healthcare mailing list.  I want to add
a disclaimer to all emails as a footer, and have set it up in the non Digest
Options.  I also want the footer to appear in the body of the email, not as
an attachment.

 

If I set  Content Filtering to "Yes"  This works.  The other content
filtering options are:

 

Pass Mime Types-

multipart

multipart/mixed

multipart/alternative

text/plain

image

 

Remove attachments-

exe

bat

cmd

com

pif

scr

vbs

cpl

 

Edit collapse alternatives and Edit convert HTML are both YES.

 

The problem - one of the recipients' messages keeps bouncing with this error
message:

The attached message matched the ukmastocytosissupport_ukmasto.org mailing
list's content filtering rules and was prevented from being forwarded on to
the list membership.  You are receiving the only remaining copy of the
discarded message.

 

Emails bounce when there is no attachment and when the subject and content
are just "Test".

 

If I revert to no content filtering the footer is sent as an attachment.

 

The only difference I can see is that the email address is of the format
 "Christian name"@"Surname".net

 

Any help would be greatly appreciated.

 

Roger 

 

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering and HTML emails. Bug?

2012-04-20 Thread Mark Sapiro
David  wrote:
>>
>It works as expected now except some MUA's display the footers as a plain
>text attachment (and others display them as expected). If there is no easy
>solution to this, we'll live with it.


The easy solution is to allow only plain text, but that's not going to
work for you. See the FAQ at  for a more
complete discussion.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering and HTML emails. Bug?

2012-04-20 Thread David
On Fri, Apr 20, 2012 at 4:26 PM, David  wrote:

>
>
> On Fri, Apr 20, 2012 at 4:11 PM, Mark Sapiro  wrote:
>
>> David  wrote:
>> >
>> >To reproduce:
>> >
>> >1. Turn content filtering on, but set plain text conversion to NO:
>> >
>> >Should Mailman convert text/html parts to plain text: No
>> >
>> >2.  Send html emails through the list using web-based gmail on each end.
>>
>>
>> Is text/html in the pass_mime_types content filtering setting?
>>
>> Is collapse_alternatives set to No?
>>
>> I suspect that one or both of those is not the case, and setting them
>> will solve your problem.
>>
>
> You are right about the settings. I changed them and we are re-testing.
> I'll report back if the problem is not resolved. I suspect it will be
> resolved. Thanks.
>
>
It works as expected now except some MUA's display the footers as a plain
text attachment (and others display them as expected). If there is no easy
solution to this, we'll live with it.
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering and HTML emails. Bug?

2012-04-20 Thread David
On Fri, Apr 20, 2012 at 4:11 PM, Mark Sapiro  wrote:

> David  wrote:
> >
> >To reproduce:
> >
> >1. Turn content filtering on, but set plain text conversion to NO:
> >
> >Should Mailman convert text/html parts to plain text: No
> >
> >2.  Send html emails through the list using web-based gmail on each end.
>
>
> Is text/html in the pass_mime_types content filtering setting?
>
> Is collapse_alternatives set to No?
>
> I suspect that one or both of those is not the case, and setting them
> will solve your problem.
>

You are right about the settings. I changed them and we are re-testing.
I'll report back if the problem is not resolved. I suspect it will be
resolved. Thanks.
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering and HTML emails. Bug?

2012-04-20 Thread Mark Sapiro
David  wrote:
>
>To reproduce:
>
>1. Turn content filtering on, but set plain text conversion to NO:
>
>Should Mailman convert text/html parts to plain text: No
>
>2.  Send html emails through the list using web-based gmail on each end.


Is text/html in the pass_mime_types content filtering setting?

Is collapse_alternatives set to No?

I suspect that one or both of those is not the case, and setting them
will solve your problem.

I further suspect that collapse_alternatives is the issue. Gmail
creates a multi-part alternative message with a text/plain alternative
containing Gmail's conversion of the HTML and a text/html alternative
containing the HTML.

If collapse_alternatives is Yes, Mailman simply replaces the
multipart/alternative part with the first (i.e.text/plain) alternative.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content filtering and HTML emails. Bug?

2012-04-20 Thread David
This may be a bug...

Mailman is converting html messages to plain text even when set not to
convert. And it is not an MUA issue. We just verified this using
web-based Gmail on both ends.

Background (from past discussions on this list):

Here is the question:
http://mail.python.org/pipermail/mailman-users/2007-December/059517.html

> Mailman default setting is to converted all HTML to plain text;
> however, our users would like to send out messages with text format.
> We changed the Content Filtering settings to:
> Should Mailman filter the content of list traffic: Yes
> Remove message attachments that don't have a matching content type:
> multipart/mixed, multipart/alternative, text/plain, html
> Should Mailman convert text/html parts to plain text: No
>
> The list still removes the text format even with these settings. Am I
> missing a setting?


Mark Sapiro's answer:
http://mail.python.org/pipermail/mailman-users/2006-April/050753.html

> No. There is nothing you can do in Mailman to do this because it is an
> MUA issue, not a message format issue per se. The same thing should be
> happening if you sent the same message directly to the recipient and
> not through a list.
>
> This is why many people recommend that list mail be plain text only.
> That is a format that all MUAs understand.

We see different (incorrect?) behavior:

To reproduce:

1. Turn content filtering on, but set plain text conversion to NO:

Should Mailman convert text/html parts to plain text: No

2.  Send html emails through the list using web-based gmail on each end.

Expected result:

Receive HTML when an HTML message is sent.

Actual result:

Plain text messages are received. HTML messages are converted to plain
text by Mailman. I believe the next step shows it is not an MUA issue.

Next step:

1. Turn content filtering OFF. No need to make any other changes.

2.  Send html emails through the list using web-based gmail on each end.

Expected result:

Receive HTML when an HTML message is sent.

Actual result:

It works correctly now. HTML messages are not converted to plain text
by Mailman.
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering mail body

2012-03-31 Thread Mark Sapiro
dhanushka ranasinghe wrote:
>
>is it possible  to  filter and reject any mails that have certain words in  
>them


Yes, it is but it requires a custom handler to examine the message body
and take appropriate action. See the FAQ at


The handler you want is fairly simple. A basic outline is


import re
from Mailman import Errors
from Mailman import Utils

# Compile re to match words with flags like IGNORECASE, etc as desired.
CRE = re.compile('re_that_matches_your_words', re.IGNORCASE)
# Rejection message if we're rejecting.
MESSAGE = Utils.wrap("""Some nice message as to why
the message is being rejected.""")

def process(mlist, msg, msgdata):
for part in msg.walk():
if part.get_content_maintype() == 'text':
if CRE.search(part.get_payload(decode=True)):
raise Errors.RejectMessage , MESSAGE
# or raise Errors.DiscardMessage if you want to
# just discard it.


-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content filtering mail body

2012-03-31 Thread dhanushka ranasinghe
Hi guys

is it possible  to  filter and reject any mails that have certain words in  them


Thank You
Dhanushka
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering

2011-03-26 Thread Mark Sapiro
Robert M. Jenney wrote:
>
>As a list administrator I would like to have attachments removed but retain
>the HTML formatting of the primary message. When I put Content Filtering to
>Yes the attachments are removed but the message formatting is changed
>regardless of how I select the other settings. (I.e., footnote superscripts
>become regular text and the font appears to be regular text.) I can't find
>my answer in the FAQs.  


If you want to accept HTML formatting, but remove other types of
attachments, put the following in pass_mime_types

multipart
text/plain
text/html

If you want to accept the plain text and HTML parts of messages
forwarded "as attachments" to the list, add

message/rfc822

to the above list.

In addition, you must set both collapse_alternatives and
convert_html_to_plaintext to No.

I have just added the FAQ at  to cover
this.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content filtering

2011-03-26 Thread Robert M. Jenney
Good morning,

 

As a list administrator I would like to have attachments removed but retain
the HTML formatting of the primary message. When I put Content Filtering to
Yes the attachments are removed but the message formatting is changed
regardless of how I select the other settings. (I.e., footnote superscripts
become regular text and the font appears to be regular text.) I can't find
my answer in the FAQs.  

 

Thanks again for the great service, Bob Jenney


Robert M. Jenney, Director
Aviation Safety Connection, Inc.
11 Lake Street, Unit #121
Wakefield, MA 01880 USA
r...@aviation.org; (781) 245-1391
Go to   http://aviation.org

 

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content Filtering

2011-01-17 Thread Ruth Indeck

Thank you, Mark, for all your responses. I had originally thought I should have 
the list be able to convert to plain text, but then decided it would be ok to 
let messages go through as html. But I still wanted it to strip attachments.

I added text/html to the list, and set the bottom two things to "no" and now it 
is working -- I received the whole message with html, with no funny complaints about not 
being allowed, and it successfully stripped the test pdf and doc attachments I sent.

Ruth

On 1/17/11 12:19 PM, Mark Sapiro wrote:

Ruth Indeck wrote:

Question: Why doesn't Mailman convert the html to plaintext on its own?

The intro to Content Management says:

Finally, any text/html parts that are left in the message may be converted to 
text/plain if 
convert_html_to_plaintext
  is enabled and the site is configured to allow these conversions.

I have "convert to text/plain" enabled.


There are no HTML parts left after filtering because text/html is not
in pass_mime_types.



What does the second part mean? How do you configure your site to allow these 
conversions? Is it something a regular administrator could do, or is it 
something that the host site of my Mailman list has to do?


It means the HTML to plain text conversion is done by a command set by
the Mailman site administrator. The default command is

HTML_TO_PLAIN_TEXT_COMMAND = '/usr/bin/lynx -dump %(filename)s'

which may not work on all systems.


--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content Filtering

2011-01-17 Thread Mark Sapiro
Ruth Indeck wrote:
>
>Question: Why doesn't Mailman convert the html to plaintext on its own?
>
>The intro to Content Management says:
>
>Finally, any text/html parts that are left in the message may be converted to 
>text/plain if convert_html_to_plaintext 
>
> is enabled and the site is configured to allow these conversions.
>
>I have "convert to text/plain" enabled.


There are no HTML parts left after filtering because text/html is not
in pass_mime_types.


>What does the second part mean? How do you configure your site to allow these 
>conversions? Is it something a regular administrator could do, or is it 
>something that the host site of my Mailman list has to do?


It means the HTML to plain text conversion is done by a command set by
the Mailman site administrator. The default command is

HTML_TO_PLAIN_TEXT_COMMAND = '/usr/bin/lynx -dump %(filename)s'

which may not work on all systems.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content Filtering

2011-01-17 Thread Mark Sapiro
Ruth Indeck wrote:
>
>1. When I try to turn Content Filtering on, my email (an announcement of shows 
>at a folk club, with links and some html) comes through with the html intact 
>and a message at the top saying:
>
>"The message's content type was not explicitly allowed"


This message did not go to the list. It was rejected per your
filter_action = Reject setting because the message's content type was
not one of the 4 types you have listed in pass_mime_types.

Most likely, the message was an HTML only message, i.e. Content-Type:
text/html.


>When I turn CF off, there is no strange message and the email comes through 
>ok, but I worry that someone else might send an email with a bad attachment.


If you want to pass this message with content filtering on, you have to
add text/html to pass_mime_types.

Or you can set your mail client to send multipart/alternative with both
text/plain and text/html alternatives.

If you do either of the above, with collapse_alternatives and
convert_html_to_plaintext both Yes, the messager sent to the list will
be plain text only.

If you want oy allow HTML to be sent to the list, add text/html to
pass_mime_types and set both collapse_alternatives and
convert_html_to_plaintext to No.


>2. When I tried to send the same message with a pdf and a Word doc, just to 
>test it, the message went through without any content at all -- neither the 
>attachments nor the actual email message came through.


It is not clear what happened here. If the message were multipart/mixed
with a text/html part and, e.g., an application/pdf part, with your
settings, everything should have been removed and the message rejected
with reason "After content filtering, the message was empty".

If the message was actually delivered to the list as an empty message,
it must have contained a, possibly blank, text/plain part.


>Here are the settings I am using:
>
>Yes
>
>Blank
>
>multipart/mixed
>multipart/alternative
>text/plain
>message/rfc822
>
>exe
>bat
>cmd
>com
>pif
>scr
>vbs
>cpl
>
>Blank
>
>Yes
>Yes
>Reject


With these settings, you need to post plain text or
multipart/alternative with a plain text part. If you want to allow
HTML, add text/html to pass_mime_types, and set both
collapse_alternatives and convert_html_to_plaintext to No, or if you
want to convert the HTML to plain text, leave them Yes.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content Filtering

2011-01-17 Thread Ruth Indeck

Just to add a little more -- I'm still experimenting:

When I remove the html coding and send my message as plain text, that annoying message, 
"The message's content type was not explicitly allowed", disappears.

And when I send the message as plain text, and include the attachments, the 
message comes out fine, and without the attachments (this is good -- I set 
Content Filtering to be on).

Question: Why doesn't Mailman convert the html to plaintext on its own?

The intro to Content Management says:

Finally, any text/html parts that are left in the message may be converted to 
text/plain if convert_html_to_plaintext 

 is enabled and the site is configured to allow these conversions.

I have "convert to text/plain" enabled.

What does the second part mean? How do you configure your site to allow these 
conversions? Is it something a regular administrator could do, or is it 
something that the host site of my Mailman list has to do?



On 1/17/11 11:47 AM, Ruth Indeck wrote:

I don't know a lot about scripts, so the most useful answers would involve just 
telling me what settings to use.

I would like to have content filtering turned on, because I would like to make 
sure that attachments don't go out on the list, and especially the dangerous 
ones.

Here are my problems (I have not yet added a lot of names, and am still in the 
testing stage):

1. When I try to turn Content Filtering on, my email (an announcement of shows 
at a folk club, with links and some html) comes through with the html intact 
and a message at the top saying:

"The message's content type was not explicitly allowed"

When I turn CF off, there is no strange message and the email comes through ok, 
but I worry that someone else might send an email with a bad attachment.

2. When I tried to send the same message with a pdf and a Word doc, just to 
test it, the message went through without any content at all -- neither the 
attachments nor the actual email message came through.

Here are the settings I am using:

Yes

Blank

multipart/mixed
multipart/alternative
text/plain
message/rfc822

exe
bat
cmd
com
pif
scr
vbs
cpl

Blank

Yes
Yes
Reject





--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/soapbox%40comcast.net


--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content Filtering

2011-01-17 Thread Ruth Indeck

I don't know a lot about scripts, so the most useful answers would involve just 
telling me what settings to use.

I would like to have content filtering turned on, because I would like to make 
sure that attachments don't go out on the list, and especially the dangerous 
ones.

Here are my problems (I have not yet added a lot of names, and am still in the 
testing stage):

1. When I try to turn Content Filtering on, my email (an announcement of shows 
at a folk club, with links and some html) comes through with the html intact 
and a message at the top saying:

"The message's content type was not explicitly allowed"

When I turn CF off, there is no strange message and the email comes through ok, 
but I worry that someone else might send an email with a bad attachment.

2. When I tried to send the same message with a pdf and a Word doc, just to 
test it, the message went through without any content at all -- neither the 
attachments nor the actual email message came through.

Here are the settings I am using:

Yes

Blank

multipart/mixed
multipart/alternative
text/plain
message/rfc822

exe
bat
cmd
com
pif
scr
vbs
cpl

Blank

Yes
Yes
Reject





--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content Filtering options

2010-10-04 Thread Mark Sapiro
dsl...@gmail.com wrote:
>
>Would it be possible for someone to explain simply and clearly which
>configuration settings should I use in this section in order to obtain:
>
>- HTML messages (yes, right, I NEED to have HTML messages for this list)
>- Footers being part of the body of the same HTML message - and not as
>attachments


This is not a content filtering question. It has to do with the way
list footers are added to messages which are not (after content
filtering) a single part, text/plain message. In short if you have an
HTML part in the message the footer will always be added as a separate
part.

See the FAQ at  for more about this issue
including some links to contributed patches/work-arounds.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content Filtering options

2010-10-04 Thread dsl225
I've read many messages regarding this section's configuration, but, I have
to confess, the more I read the less I understand. Probably not the only
one...

Would it be possible for someone to explain simply and clearly which
configuration settings should I use in this section in order to obtain:

- HTML messages (yes, right, I NEED to have HTML messages for this list)
- Footers being part of the body of the same HTML message - and not as
attachments

Many thanks in advance!

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering

2009-02-09 Thread Mark Sapiro
Rob wrote:

>Is there any way of having mailman scan message content (not headers)  
>and holding a message for review if there is a match in the body of  
>the message? We have multiple lists, some of which are specifically  
>set up to discuss a particular subject, and users frequently post to  
>the wrong list, leading to much confusion and occasional flame-wars. I  
>would love to be able to hold those messages and contact the authors  
>directly or resend it to the correct list.


There is no configuration facility in Mailman to do this. You would
have to implement a custom handler or equivalent to do this. See the
FAQ at  for information on implementing
custom handlers.

A proper implementation would be complex since you would probably want
to implement a new list attribute to specify regexps or the like to
match against the body to hold the message.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Users] Content filtering

2009-02-09 Thread Rob
Is there any way of having mailman scan message content (not headers)  
and holding a message for review if there is a match in the body of  
the message? We have multiple lists, some of which are specifically  
set up to discuss a particular subject, and users frequently post to  
the wrong list, leading to much confusion and occasional flame-wars. I  
would love to be able to hold those messages and contact the authors  
directly or resend it to the correct list.


Thanks,

-Rob


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Users] content filtering and blank messages (again)

2008-05-17 Thread Russell Clemings
(Following up)

The problem and the workaround appear to be the same as this:

http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.022.htp

The system in this case is running CPanel 11.18.6 on CentOS 4.6. The
only difference from the symptoms discussed in the FAQ is that the
messages sent out by Mailman after filtering were blank, whereas the
case in the FAQ had a "permission denied" error.

Thanks to Mark Sapiro for ruling out other causes and pointing to this
solution.

rac


ORIGINAL MESSAGE:

I've search the archives and I must be missing something, so if this
is a stupid question I apologize. But I'm having endless trouble
getting Mailman to convert messages sent as HTML only into plain text.
It's sending an empty message. The fixes discussed in past threads on
this subject aren't working -- or else I'm not implementing them
correctly.

What follows are the content filtering settings, followed by a cc of a
test message I sent to the list as HTML only, followed by what Mailman
sent out after content filtering. The latter has no message body
except the standard footer. I disguised all of the emails and other
identifying information but I hope it's still understandable.

Thanks in advance for any help.

rac

---

CONTENT FILTERING SETTINGS:

Should Mailman filter the content of list traffic according to the
settings below?
Yes

Remove message attachments that have a matching content type.
(Blank)

Remove message attachments that don't have a matching content type.
Leave this field blank to skip this filter test.
text
multipart/mixed
multipart/alternative
multipart/related
message/rfc822
text/html
text/plain

Remove message attachments that have a matching filename extension.
(Blank)

Remove message attachments that don't have a matching filename
extension. Leave this field blank to skip this filter test.
(Blank)

Should Mailman collapse multipart/alternative to its first part content?
Yes

Should Mailman convert text/html parts to plain text? This conversion
happens after MIME attachments have been stripped.
Yes

Action to take when a message matches the content filtering rules.
Forward to List Owner



CC OF MESSAGE AS IT WAS SENT TO MAILMAN:

Received: from my.isps.mx.server ([xx.xx.xx.xx])
 by alnrmxc14.isps.mx.server (alnrmxc14) with ESMTP
 id <20080515034531a1400509ste>; Thu, 15 May 2008 03:45:31 +
X-Originating-IP: [xx.xx.xx.xx]
Received: from [127.0.0.1] ([71.195.187.118])
   by my.isps.mx.server with isps
   id RflV1Z0062ZiHyX8M0; Thu, 15 May 2008 03:45:31 +
X-Authority-Analysis: v=1.0 c=1 a=LIYwtywzrmFXcuGVuBcA:9
 a=Fnt7OvYJGKwTYi23R0GNqJl9OAIA:4 a=AfD3MYMu9mQA:10
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 14 May 2008 20:45:31 -0700
From: Me <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: html mail test
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit




 


html mail test







MESSAGE SENT BY MAILMAN AFTER CONTENT FILTERING:

Delivered-To: [EMAIL PROTECTED]
Received: by xx.xx.xx.xx with SMTP id c10cs50615fga;
   Wed, 14 May 2008 20:45:48 -0700 (PDT)
Received: by xx.xxx.xx.x with SMTP id b1mr1944460waa.165.1210823147551;
   Wed, 14 May 2008 20:45:47 -0700 (PDT)
Return-Path: <[EMAIL PROTECTED]>
Received: from server1.mydomain.com (server1.mydomain.com [xxx.xx.xxx.xxx])
   by mx.address.com with ESMTP id g25si4319230wag.4.2008.05.14.20.45.45;
   Wed, 14 May 2008 20:45:47 -0700 (PDT)
Received-SPF: pass (address.com: domain of
[EMAIL PROTECTED] designates xxx.xx.xxx.xxx as
permitted sender) client-ip=xxx.xx.xxx.xxx;
Authentication-Results: mx.address.com; spf=pass (address.com: domain
of [EMAIL PROTECTED] designates xxx.xx.xxx.xxx as
permitted sender) [EMAIL PROTECTED]
Received: from localhost ([127.0.0.1] helo=server1.mydomain.com)
   by server1.mydomain.com with esmtp (Exim 4.68)
   (envelope-from <[EMAIL PROTECTED]>)
   id 1JwUPZ-sX-JQ
   for [EMAIL PROTECTED]; Wed, 14 May 2008 23:45:45 -0400
Received: from my.isps.mx.server ([76.96.30.40])
   by server1.mydomain.com with esmtp (Exim 4.68)
   (envelope-from <[EMAIL PROTECTED]>) id 1JwUPP-Uu-SR
   for [EMAIL PROTECTED]; Wed, 14 May 2008 23:45:44 -0400
Received: from my.isps.mx.server ([76.96.30.11])
   by my.isps.mx.server with isps
   id RerV1Z0050EPchoA403e00; Thu, 15 May 2008 03:45:33 +
Received: from [127.0.0.1] ([71.195.187.118])
   by my.isps.mx.server with isps
   id RflV1Z0062ZiHyX8M0; Thu, 15 May 2008 03:45:31 +
X-Authority-Analysis: v=1.0 c=1 a=LIYwtywzrmFXcuGVuBcA:9
   a=Fnt7OvYJGKwTYi23R0GNqJl9OAIA:4 a=AfD3MYMu9mQA:10
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 14 May 2008 20:45:31 -0700
From: Me <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
To: [EMAIL PROTECTED], [EMAIL PROTECTED]

[Mailman-Users] content filtering and blank messages (again)

2008-05-14 Thread Russell Clemings
I've search the archives and I must be missing something, so if this
is a stupid question I apologize. But I'm having endless trouble
getting Mailman to convert messages sent as HTML only into plain text.
It's sending an empty message. The fixes discussed in past threads on
this subject aren't working -- or else I'm not implementing them
correctly.

What follows are the content filtering settings, followed by a cc of a
test message I sent to the list as HTML only, followed by what Mailman
sent out after content filtering. The latter has no message body
except the standard footer. I disguised all of the emails and other
identifying information but I hope it's still understandable.

Thanks in advance for any help.

rac

---

CONTENT FILTERING SETTINGS:

Should Mailman filter the content of list traffic according to the
settings below?
Yes

Remove message attachments that have a matching content type.
(Blank)

Remove message attachments that don't have a matching content type.
Leave this field blank to skip this filter test.
text
multipart/mixed
multipart/alternative
multipart/related
message/rfc822
text/html
text/plain

Remove message attachments that have a matching filename extension.
(Blank)

Remove message attachments that don't have a matching filename
extension. Leave this field blank to skip this filter test.
(Blank)

Should Mailman collapse multipart/alternative to its first part content?
Yes

Should Mailman convert text/html parts to plain text? This conversion
happens after MIME attachments have been stripped.
Yes

Action to take when a message matches the content filtering rules.
Forward to List Owner



CC OF MESSAGE AS IT WAS SENT TO MAILMAN:

Received: from my.isps.mx.server ([xx.xx.xx.xx])
  by alnrmxc14.isps.mx.server (alnrmxc14) with ESMTP
  id <20080515034531a1400509ste>; Thu, 15 May 2008 03:45:31 +
X-Originating-IP: [xx.xx.xx.xx]
Received: from [127.0.0.1] ([71.195.187.118])
by my.isps.mx.server with isps
id RflV1Z0062ZiHyX8M0; Thu, 15 May 2008 03:45:31 +
X-Authority-Analysis: v=1.0 c=1 a=LIYwtywzrmFXcuGVuBcA:9
 a=Fnt7OvYJGKwTYi23R0GNqJl9OAIA:4 a=AfD3MYMu9mQA:10
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 14 May 2008 20:45:31 -0700
From: Me <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: html mail test
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit




  


html mail test







MESSAGE SENT BY MAILMAN AFTER CONTENT FILTERING:

Delivered-To: [EMAIL PROTECTED]
Received: by xx.xx.xx.xx with SMTP id c10cs50615fga;
Wed, 14 May 2008 20:45:48 -0700 (PDT)
Received: by xx.xxx.xx.x with SMTP id b1mr1944460waa.165.1210823147551;
Wed, 14 May 2008 20:45:47 -0700 (PDT)
Return-Path: <[EMAIL PROTECTED]>
Received: from server1.mydomain.com (server1.mydomain.com [xxx.xx.xxx.xxx])
by mx.address.com with ESMTP id g25si4319230wag.4.2008.05.14.20.45.45;
Wed, 14 May 2008 20:45:47 -0700 (PDT)
Received-SPF: pass (address.com: domain of
[EMAIL PROTECTED] designates xxx.xx.xxx.xxx as
permitted sender) client-ip=xxx.xx.xxx.xxx;
Authentication-Results: mx.address.com; spf=pass (address.com: domain
of [EMAIL PROTECTED] designates xxx.xx.xxx.xxx as
permitted sender) [EMAIL PROTECTED]
Received: from localhost ([127.0.0.1] helo=server1.mydomain.com)
by server1.mydomain.com with esmtp (Exim 4.68)
(envelope-from <[EMAIL PROTECTED]>)
id 1JwUPZ-sX-JQ
for [EMAIL PROTECTED]; Wed, 14 May 2008 23:45:45 -0400
Received: from my.isps.mx.server ([76.96.30.40])
by server1.mydomain.com with esmtp (Exim 4.68)
(envelope-from <[EMAIL PROTECTED]>) id 1JwUPP-Uu-SR
for [EMAIL PROTECTED]; Wed, 14 May 2008 23:45:44 -0400
Received: from my.isps.mx.server ([76.96.30.11])
by my.isps.mx.server with isps
id RerV1Z0050EPchoA403e00; Thu, 15 May 2008 03:45:33 +
Received: from [127.0.0.1] ([71.195.187.118])
by my.isps.mx.server with isps
id RflV1Z0062ZiHyX8M0; Thu, 15 May 2008 03:45:31 +
X-Authority-Analysis: v=1.0 c=1 a=LIYwtywzrmFXcuGVuBcA:9
a=Fnt7OvYJGKwTYi23R0GNqJl9OAIA:4 a=AfD3MYMu9mQA:10
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 14 May 2008 20:45:31 -0700
From: Me <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
X-Spam-Status: No, score=0.9
X-Spam-Score: 9
X-Spam-Bar: /
X-Spam-Flag: NO
X-Antivirus-Scanner: ClamAV found no viruses but be safe and do your own scans
MIME-Version: 1.0
X-Content-Filtered-By: Mailman/MimeDel 2.1.9.cp2
Subject: [Mailman-list] html mail test
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.1.9.cp2
Precedence: list
Reply-To: Mailman-list discussion list <[EMAIL PROTECTED]>
List-Id: Mailman-list discussion list 
List-Unsubscri

Re: [Mailman-Users] Content filtering problem...

2008-03-25 Thread Glenn Sieb
Mark Sapiro wrote:
> I suggest what you want in pass_mime_types is
>
> multipart
> message/rfc822
> text/plain
> text/html
>
> This will accept all text plain parts and text/html parts, even from
> attached message/rfc822 parts. Then multipart/alternative parts will
> be collapsed to the first (probably text/plain) alternative, and any
> remaining text/html parts will be converted to plain text by lynx or
> whatever you set in mm_cfg.py for HTML_TO_PLAIN_TEXT_COMMAND.
>
> If you also want to accept signed messages, you probably want to add
>
> application/pgp-signature
>
> to the above list.
>
>   

I've changed the list's config to match this--and am waiting for the 
user to try it again. I am sure, given the changes, it will work now.

Thanks again, Mark!

Best,
--Glenn
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content filtering problem...

2008-03-24 Thread Mark Sapiro
Glenn Sieb wrote:
>
>I'm highly puzzled. I have a user trying to post on a list I own. She's 
>getting "The message's content type was not explicitly allowed". The 
>message is just a "Test post" from her, headers (anonymized) follow the 
>email. There are *NO* entries in any of the mailman log files showing 
>her posts being rejected or why. Postfix mail logs just show the 
>outgoing mail from [EMAIL PROTECTED] going to her.
>
>Settings from content filtering:
>
>Should mailman filter? Yes
>Remove message attachments that have a matching content type: (blank)
>Remove message attachments that don't have a matching content type. 
>Leave this field blank to skip this filter test:  multipart/mixed 
>multipart/alternative text/plain


So you are allowing only text/plain parts that are either a text/plain
message or a text/plain sub-part of a multipart/mixed or
multipart/alternative message

No text/html.


>Remove message attachments that have a matching filename extension: exe 
>bat cmd com pif scr vbs cpl
>Remove message attachments that don't have a matching filename 
>extension. Leave this field blank to skip this filter test.  (blank)
>Should Mailman collapse multipart/alternative to its first part 
>content?  Yes


Irrelevant because you only accept the text/plain alternative in the
first place.


>Should Mailman convert text/html parts to plain text? This conversion 
>happens after MIME attachments have been stripped: Yes


Irrelevant again because you don't accept text/html.


>Action to take when a message matches the content filtering rules: Reject
>
>I'd appreciate any help :-/


>> Content-Type: text/html; charset=utf-8


You don't accept text/html.


I suggest what you want in pass_mime_types is

multipart
message/rfc822
text/plain
text/html

This will accept all text plain parts and text/html parts, even from
attached message/rfc822 parts. Then multipart/alternative parts will
be collapsed to the first (probably text/plain) alternative, and any
remaining text/html parts will be converted to plain text by lynx or
whatever you set in mm_cfg.py for HTML_TO_PLAIN_TEXT_COMMAND.

If you also want to accept signed messages, you probably want to add

application/pgp-signature

to the above list.

-- 
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Content filtering problem...

2008-03-24 Thread Glenn Sieb
Hi everyone!

I'm highly puzzled. I have a user trying to post on a list I own. She's 
getting "The message's content type was not explicitly allowed". The 
message is just a "Test post" from her, headers (anonymized) follow the 
email. There are *NO* entries in any of the mailman log files showing 
her posts being rejected or why. Postfix mail logs just show the 
outgoing mail from [EMAIL PROTECTED] going to her.

Settings from content filtering:

Should mailman filter? Yes
Remove message attachments that have a matching content type: (blank)
Remove message attachments that don't have a matching content type. 
Leave this field blank to skip this filter test:  multipart/mixed 
multipart/alternative text/plain
Remove message attachments that have a matching filename extension: exe 
bat cmd com pif scr vbs cpl
Remove message attachments that don't have a matching filename 
extension. Leave this field blank to skip this filter test.  (blank)
Should Mailman collapse multipart/alternative to its first part 
content?  Yes
Should Mailman convert text/html parts to plain text? This conversion 
happens after MIME attachments have been stripped: Yes
Action to take when a message matches the content filtering rules: Reject

I'd appreciate any help :-/

Thanks in advance!
Best,
--Glenn (headers follow)

> Subject: test post
> From: yahoo user 
> Date: Mon, 24 Mar 2008 19:41:01 -0700 (PDT)
> To: list-I-own 
> Return-Path: 
> Received: from localhost (localhost [127.0.0.1]) by wingfoot.org 
> (Postfix) with ESMTP id A15AD39DC50 for  lists.wingfoot.org>; Mon, 24 Mar 2008 22:44:12 -0400 (EDT)
> X-Virus-Scanned: amavisd-new at wingfoot.org
> X-Spam-Flag: NO
> X-Spam-Score: -0.641
> X-Spam-Status: No, score=-0.641 tagged_above=-999 required=6 
> tests=[AWL=-1.097, BAYES_00=-2.599, DKIM_SIGNED=0.001, 
> DKIM_VERIFIED=-0.001, FREEMAIL_FROM=0.5, FREEMAIL_FROM_D3=1, 
> HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.097, MIME_HTML_ONLY=1.457]
> Received: from wingfoot.org ([127.0.0.1]) by localhost (wingfoot.org 
> [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OWGZ3AAEsz1y for 
> ; Mon, 24 Mar 2008 22:44:04 -0400 
> (EDT)
> Received: from web55805.mail.re3.yahoo.com 
> (web55805.mail.re3.yahoo.com [216.252.110.51]) by wingfoot.org 
> (Postfix) with SMTP id E460C39DC4C for  lists.wingfoot.org>; Mon, 24 Mar 2008 22:44:03 -0400 (EDT)
> Received: (qmail 88759 invoked by uid 60001); 25 Mar 2008 02:41:01 -
> DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; 
> h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
>  
> b=K84BI4SQEiUyUvh4rBhj838igaj9r7XQZd2tOkltVxl0+MuKo5YZE7KUJBiPj7DNMiK5VmB/PW9OMVjRdnj93QUkaYEWn1BrbEh1fv5OzN1SzIsNAAA5VtqVfJN//RNiuKuLb5FFhIO3jGYeidkoYMm5Zvxk6oOtgvvy9HMNvcQ=;
> X-YMail-OSG: 
> 7uudDSEVM1nvrn9SdsHKiA2dp9RH51bGQkhyhO.WpWE5pYs4qUOZ8_JgLMK7q9ZrBg--
> Received: from [24.233.189.167] by web55805.mail.re3.yahoo.com via 
> HTTP; Mon, 24 Mar 2008 19:41:01 PDT
> X-Mailer: YahooMailWebService/0.7.185
> Reply-To: yahoo_user blat yahoo.com
> MIME-Version: 1.0
> Content-Type: text/html; charset=utf-8
> Content-Transfer-Encoding: quoted-printable
> Message-ID: <498709.88720.qm blat web55805.mail.re3.yahoo.com>
>
>

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering for Body Text

2008-03-21 Thread Mark Sapiro
Cyndi Norwitz wrote:
>
>What I'd like to do is set up a filter that scans the content of the body
>text for a phrase like: "FAIR USE NOTICE" or "Title 17 U.S.C. Section 107."
>I would like those caught posts to go into the moderation queque ("hold"
>not "reject" or "discard").



>An example is:
>http://www.mail-archive.com/mailman-users@python.org/msg30851.html
>
>But I can't find anything newer than 3 years.  Perhaps something has
>changed since then?  Is what I'm asking possible without a major
>workaround?  Might it be possible in the future, perhaps as an extension of
>the spam filters?


Nothing in this area has changed since the message you link to was
posted.

It is currently not possible to filter based on the content of a
message part without a custom handler or other form of patch.

You could add this request to the comments at
.

-- 
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Content Filtering for Body Text

2008-03-21 Thread Cyndi Norwitz
My mailing lists have a policy of disallowing copyrighted material without
permission.  I have a couple people on moderation who do not understand
this and post such things frequently.  But I want to keep most folks off
moderation if possible as it improves the flow of the list and reduces my
workload.

Once in a while, someone (who isn't moderated) forgets and posts an entire
published article.  Almost always, it's accompanied by one of those "fair
use" statements that someone made up a while ago and is used on everything
(I've seen it on press releases, government documents being forwarded, and
posts that correctly give a link and a single paragraph for context).

What I'd like to do is set up a filter that scans the content of the body
text for a phrase like: "FAIR USE NOTICE" or "Title 17 U.S.C. Section 107."
I would like those caught posts to go into the moderation queque ("hold"
not "reject" or "discard").

The content filtering in the web interface is for attachments and I'm
afraid to fiddle with it since I've had really bad results from trying to
use it before on a test list.  The only other thing in the interface I see
is the ability to filter based on text in the header (Privacy: Spam).

So I searched the MM FAQ and the archives of this list and came up with the
basic answer that, no, this is not possible unless you filter posts with
procmail prior to being processed by MM (something that is impossible for
me to do since my MM is run by my ISP) or use a patch (which is complex and
requires root access).

An example is:
http://www.mail-archive.com/mailman-users@python.org/msg30851.html

But I can't find anything newer than 3 years.  Perhaps something has
changed since then?  Is what I'm asking possible without a major
workaround?  Might it be possible in the future, perhaps as an extension of
the spam filters?

Thanks,
Cyndi

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering Scrubs PDF Attachment

2007-07-20 Thread Stephen J. Turnbull
Brad Knowles writes:

 > However, do keep in mind that spammers have recently latched onto the 
 > fact that most people do seem to let *.PDF files through, although 
 > I'm not sure what MIME type these messages are being tagged with.

FWIW, in a sample of 10 recent .pdf spams, all had extension ".pdf"
and Content-Type "application/pdf", with disposition "inline".
(However, these may all be the same spammer for all I know, I don't
read them.)

Very standards-conforming spammers.

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering Scrubs PDF Attachment

2007-07-20 Thread Brad Knowles
On 7/20/07, Fitzpatrick, Ted wrote:

>  Thanks, Mark. The MUA is including "application/octet-stream" as the
>  mime type.

Gack.

>  I didn't include this as passable because I wanted to strip
>  ".exe" files from messages.

Perfectly reasonable.

>   It looks like if I want to enable
>  subscribers to attach PDF files, it will at the same time enable them to
>  attach EXE files.

Not necessarily.  You could allow application/octet-stream as an 
allowed MIME type, while allowing only certain file extension types. 
However, this does widen the hole for attackers to try to get through.

> From the security perspective, do most Mailman admins
>  let EXE files pass?

It depends greatly on the particular list and the site.  Most of the 
sites/lists I help administer (including python.org, where the 
mailman-users list is hosted) will explicitly reject EXE and all the 
other known major executable file extensions, as well as blocking 
application/octet-stream, and only allow through certain MIME types 
that are considered to be reasonably safe.

However, do keep in mind that spammers have recently latched onto the 
fact that most people do seem to let *.PDF files through, although 
I'm not sure what MIME type these messages are being tagged with.  If 
you allow application/octet-stream and *.PDF through your lists, this 
may also open a much wider hole for spammers to go after.

-- 
Brad Knowles <[EMAIL PROTECTED]>, Consultant & Author
LinkedIn Profile: 
Slides from Invited Talks: 

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering Scrubs PDF Attachment

2007-07-20 Thread Mark Sapiro
Fitzpatrick, Ted wrote:

>Thanks, Mark. The MUA is including "application/octet-stream" as the
>mime type. I didn't include this as passable because I wanted to strip
>".exe" files from messages. It looks like if I want to enable
>subscribers to attach PDF files, it will at the same time enable them to
>attach EXE files. From the security perspective, do most Mailman admins
>let EXE files pass?


You'll want to test all this to be sure, but there's already a default
list of extensions in filter_filename_extensions which is 'exe',
'bat', 'cmd', 'com', 'pif', 'scr', 'vbs', 'cpl' which should block any
'named' attachments with those extensions.

However, if you add 'application/octet-stream' to pass_mime_types and
put 'pdf' and 'png' in pass_filename_extensions you should wind up
accepting named with extension attachments with only .png and .pdf
extensions. You will also accept an application/octet-stream
attachment without an extension, but this may not be particularly
risky, at least to those users with systems that identify a file type
by extension.

So no, it is not a good idea to allow .exe attachments on your list,
but you can allow some application/octet-stream files and still not
allow .exe files.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering Scrubs PDF Attachment

2007-07-20 Thread Fitzpatrick, Ted
Thanks, Mark. The MUA is including "application/octet-stream" as the
mime type. I didn't include this as passable because I wanted to strip
".exe" files from messages. It looks like if I want to enable
subscribers to attach PDF files, it will at the same time enable them to
attach EXE files. From the security perspective, do most Mailman admins
let EXE files pass?

Thanks,

Ted


-Original Message-
From: Mark Sapiro [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 11:15 AM
To: Fitzpatrick, Ted; mailman-users@python.org
Subject: Re: [Mailman-Users] Content Filtering Scrubs PDF Attachment

Fitzpatrick, Ted wrote:
>
>When Mailman's Content Filtering is on, it is scrubbing (removing) pdf
>and png attachments,


I am guessing you mean 'removing' as in throwing away, as opposed to
'scrubbing' as in storing on the server and replacing with a link to
the stored file. If by chance, you do mean 'scrubbing' in this sense,
you need to set Non-digest options->scrub_nondigest to No in the
list's admin interface.


>even though I have entered the MIME types for these
>files as "passable." For the MIME types, I used:
>
> 
>
>application/pdf
>
>image/png


These are the appropriate MIME types. The real question is why isn't
the poster's MUA putting the correct Content-Type: in the header? What
is the Content-Type of these attachments. If this is just one bogus
MUA, you could just accept the bogus Content-Type.


>The only fix I found within this list's archives was a patch to Mailman
>that sets it to use only file extensions when filtering attachments. I
>noticed debate over the security ramifications of this.


There are alternative ways to patch this. In fact, I'm not sure that
the current behavior couldn't be considered a bug.

Currently, if we have pass_filename_extensions defined, we don't accept
any parts with filenames that don't have a matching extension. I
suppose this is OK since the main inline parts we want probably don't
have filenames so aren't subject to this test. The issue is that
currently the mime types tests are applied first and the filename
extension tests are only applied to what's left. Perhaps the 'pass'
tests should be applied concurrently and a part accepted if it has a
matching mime type OR a matching extension.


>What is the best way to configure Mailman to allow PDF and PNG files to
>pass through its filtering?


Wrong question. The question should be "what's the best way to get list
members to use MUAs that properly identify the types of attachments?"
(not that I know the answer). Basically, you're dealing with
non-compliant MUAs, and given that the MUA is non-compliant, you can't
predict what it will do.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering Scrubs PDF Attachment

2007-07-20 Thread Mark Sapiro
Fitzpatrick, Ted wrote:
>
>When Mailman's Content Filtering is on, it is scrubbing (removing) pdf
>and png attachments,


I am guessing you mean 'removing' as in throwing away, as opposed to
'scrubbing' as in storing on the server and replacing with a link to
the stored file. If by chance, you do mean 'scrubbing' in this sense,
you need to set Non-digest options->scrub_nondigest to No in the
list's admin interface.


>even though I have entered the MIME types for these
>files as "passable." For the MIME types, I used:
>
> 
>
>application/pdf
>
>image/png


These are the appropriate MIME types. The real question is why isn't
the poster's MUA putting the correct Content-Type: in the header? What
is the Content-Type of these attachments. If this is just one bogus
MUA, you could just accept the bogus Content-Type.


>The only fix I found within this list's archives was a patch to Mailman
>that sets it to use only file extensions when filtering attachments. I
>noticed debate over the security ramifications of this.


There are alternative ways to patch this. In fact, I'm not sure that
the current behavior couldn't be considered a bug.

Currently, if we have pass_filename_extensions defined, we don't accept
any parts with filenames that don't have a matching extension. I
suppose this is OK since the main inline parts we want probably don't
have filenames so aren't subject to this test. The issue is that
currently the mime types tests are applied first and the filename
extension tests are only applied to what's left. Perhaps the 'pass'
tests should be applied concurrently and a part accepted if it has a
matching mime type OR a matching extension.


>What is the best way to configure Mailman to allow PDF and PNG files to
>pass through its filtering?


Wrong question. The question should be "what's the best way to get list
members to use MUAs that properly identify the types of attachments?"
(not that I know the answer). Basically, you're dealing with
non-compliant MUAs, and given that the MUA is non-compliant, you can't
predict what it will do.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Content Filtering Scrubs PDF Attachment

2007-07-20 Thread Fitzpatrick, Ted
Hi,

 

When Mailman's Content Filtering is on, it is scrubbing (removing) pdf
and png attachments, even though I have entered the MIME types for these
files as "passable." For the MIME types, I used:

 

application/pdf

image/png

 

The only fix I found within this list's archives was a patch to Mailman
that sets it to use only file extensions when filtering attachments. I
noticed debate over the security ramifications of this.

 

What is the best way to configure Mailman to allow PDF and PNG files to
pass through its filtering?

 

Thanks!

 

Ted

 

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] content filtering problem

2007-04-09 Thread Rick Pasotto
On Mon, Apr 09, 2007 at 05:24:13PM -0700, Mark Sapiro wrote:
> Rick Pasotto wrote:
> 
> >Today I received a message that had been rejected by the content
> >filtering system and I'm not sure why. The sections of the message were:
> >
> > I  1  [text/plain, 7bit, us-ascii, 0.2K]
> > I  2 Toastmaster Meeting for Tmrw[message/rfc822, 7bit, 26K]
> > I  3   >[multipa/related, 7bit, 24K]
> > I  4 >  [multipa/alternativ, 7bit, 3.7K]
> > I  5   >[text/plain, quoted, us-ascii, 0.5K]
> > I  6   > [text/html, quoted, us-ascii, 2.9K]
> > I  7 >NewCiscoLogo.jpg [image/jpeg, base64, 20K]
> >
> >In the pass_mime_types I have:
> >
> >multipart/mixed
> >multipart/alternative
> >text/plain
> >
> >Was the message rejected because the text/plain was quoted?
> 
> No.
> 
> You have two problems.
> 
> What is the overall message type in the main message headers? I suspect
> it was not multipart/mixed or multipart/alternative; possibly
> multipart/related or some such which would cause all of its sub-parts
> to be skipped because multipart/whatever is not accepted.

I can see that I was insufficiently clear. What I posted above is the
sections of the reject message that Mailman sent me. The
'message/rfc822' appears to be Mailman's encapsulation of the original
message. From your explanation I see that the problem was that the
original message was 'multipart/related'.

> Further, even if the main message is multipart/mixed, you don't accept
> the message/rfc822 part so the only thing left would be the initial
> 0.2K text/plain part.
> 
> You need to accept every multipart/ type that could possibly contain a
> sub-part of interest. A better choice for pass_mime_types is
> 
> multipart
> message/rfc822
> text/plain
> 
> In your example above, this would pass all the multipart types
> regardless of sub-type as well as the message/rfc822 part. This
> doesn't mean the entire message will be passed. It just means that the
> various sub-parts of those parts will be examined and the text/plain
> parts accepted.
> 
> Even though the above seems very liberal, it ultimately only accepts
> text/plain and elemental message/rfc822 parts, in this case only the
> two text/plain parts.

Excellent. This is what I want. Thanks.

-- 
"Only one thing can conquer war - that attitude of mind which can see
 nothing in war but destruction and annihilation" -- Ludwig von Mises
Rick Pasotto[EMAIL PROTECTED]http://www.niof.net
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] content filtering problem

2007-04-09 Thread Mark Sapiro
Rick Pasotto wrote:

>Today I received a message that had been rejected by the content
>filtering system and I'm not sure why. The sections of the message were:
>
> I  1  [text/plain, 7bit, us-ascii, 0.2K]
> I  2 Toastmaster Meeting for Tmrw[message/rfc822, 7bit, 26K]
> I  3   >[multipa/related, 7bit, 24K]
> I  4 >  [multipa/alternativ, 7bit, 3.7K]
> I  5   >[text/plain, quoted, us-ascii, 0.5K]
> I  6   > [text/html, quoted, us-ascii, 2.9K]
> I  7 >NewCiscoLogo.jpg [image/jpeg, base64, 20K]
>
>In the pass_mime_types I have:
>
>multipart/mixed
>multipart/alternative
>text/plain
>
>Was the message rejected because the text/plain was quoted?


No.

You have two problems.

What is the overall message type in the main message headers? I suspect
it was not multipart/mixed or multipart/alternative; possibly
multipart/related or some such which would cause all of its sub-parts
to be skipped because multipart/whatever is not accepted.

Further, even if the main message is multipart/mixed, you don't accept
the message/rfc822 part so the only thing left would be the initial
0.2K text/plain part.

You need to accept every multipart/ type that could possibly contain a
sub-part of interest. A better choice for pass_mime_types is

multipart
message/rfc822
text/plain

In your example above, this would pass all the multipart types
regardless of sub-type as well as the message/rfc822 part. This
doesn't mean the entire message will be passed. It just means that the
various sub-parts of those parts will be examined and the text/plain
parts accepted.

Even though the above seems very liberal, it ultimately only accepts
text/plain and elemental message/rfc822 parts, in this case only the
two text/plain parts.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] content filtering problem

2007-04-09 Thread Rick Pasotto
Today I received a message that had been rejected by the content
filtering system and I'm not sure why. The sections of the message were:

 I  1  [text/plain, 7bit, us-ascii, 0.2K]
 I  2 Toastmaster Meeting for Tmrw[message/rfc822, 7bit, 26K]
 I  3   >[multipa/related, 7bit, 24K]
 I  4 >  [multipa/alternativ, 7bit, 3.7K]
 I  5   >[text/plain, quoted, us-ascii, 0.5K]
 I  6   > [text/html, quoted, us-ascii, 2.9K]
 I  7 >NewCiscoLogo.jpg [image/jpeg, base64, 20K]

In the pass_mime_types I have:

multipart/mixed
multipart/alternative
text/plain

Was the message rejected because the text/plain was quoted?

-- 
"As blushing will sometimes make a whore pass for a virtuous
 woman, so modesty may make a fool seem a man of sense."
-- Jonathan Swift
Rick Pasotto[EMAIL PROTECTED]http://www.niof.net
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Content Filtering

2006-08-08 Thread Jim Popovitch
I've got a busy list that every now and then distributes a posted email
where the body is everything up until the first single quote character.
For example a recent email came in at 2 paragraphs, but 

   Your email was very helpful- I really do have some 
   alternatives to some of the circumstances that I find 
   oppressive-to the extent I don


Any ideas on what could cause that?

I've got convert_html_to_plaintext = Yes
collapse_alternatives = Yes
filter_mime_types = "images"
filter_filename_extensions = "exe bat cmd com pif scr vbs cpl zip"

-Jim P.


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering - Reject

2005-07-19 Thread Mark Sapiro
CL-Admin wrote:

>Thanks for the prompt response, I have been digesting and doing 
>further research, I am not to experienced in the Mime format world and 
>haven't found much in my Internet searches that I understood to help 
>me choose what to put in the mime type..  The goal is to get the list 
>into plain test with NO images, several of the users are on WEB-TV and 
>can't read HTML.  I did find FAQ 3.10 and read most of the embedded 
>link to the 20+ page document on the whys to keep in plain text, would 
>that be the solution?


That FAQ answer predates the advent of content filtering, so it is not
the current best way to do this.


>Currently the spam-specific posting filters contains (2nd field on 
>screen):
>
># Lines that *start* with a '#' are comments.
>to: [EMAIL PROTECTED]
>message-id: relay.comanche.denmark.eu
>from: [EMAIL PROTECTED]
>from: [EMAIL PROTECTED]
>
>These values are a hold over from previous hosting company set-up. 


Actually, they are defaults for legacy spam filters, but you want to
use content filtering, not header filtering.


To pass only plain text parts from essentially all messages set the
following in Content filtering->pass_mime_types:

multipart/mixed
multipart/alternative
message/rfc822
text/plain

If you also want to allow pgp signed messages, add:

multipart/signed
application/pgp-signature

Also, set filter content to Yes and set filter_action as desired. If
you want to try HTML to plain text conversion, you can set
convert_html_to_plaintext to Yes and add 'text/html' to
pass_mime_types.

Also see
http://mail.python.org/pipermail/mailman-users/2005-January/042239.html

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering - Reject

2005-07-18 Thread CL-Admin
Thanks for the prompt response, I have been digesting and doing 
further research, I am not to experienced in the Mime format world and 
haven't found much in my Internet searches that I understood to help 
me choose what to put in the mime type..  The goal is to get the list 
into plain test with NO images, several of the users are on WEB-TV and 
can't read HTML.  I did find FAQ 3.10 and read most of the embedded 
link to the 20+ page document on the whys to keep in plain text, would 
that be the solution?

Currently the spam-specific posting filters contains (2nd field on 
screen):

# Lines that *start* with a '#' are comments.
to: [EMAIL PROTECTED]
message-id: relay.comanche.denmark.eu
from: [EMAIL PROTECTED]
from: [EMAIL PROTECTED]

These values are a hold over from previous hosting company set-up. 
Where does the suggested message have to be entered, is this something 
I have to get the hosting company to do.  I currently have a dozen or 
so users that post in HTML and there post ends up in an attachment 
which is not the optimized use of the mail server or list services.

My thanks again for you assistance and bearing with my lack of 
knowledge, You never learn until you get you feet wet.





Regards,

Vern Wright

Champions Mailing List
Technical Support

-
"Eliminate annoying spam!
My mailbox is protected by iHateSpam, the #1-rated spam buster."
http://www.ihatespam.net

- Original Message - 
From: "Brad Knowles" <[EMAIL PROTECTED]>
To: "CL-Admin" <[EMAIL PROTECTED]>
Cc: 
Sent: Tuesday, July 12, 2005 10:21 AM
Subject: Re: [Mailman-Users] Content Filtering - Reject


> At 10:06 AM -0400 2005-07-12, CL-Admin wrote:
>
>> My filter settings are Yes - image/bmp, image/gif, 
>> image/jpeg,
>>  image/png, image/tiff.  for image types and multipart/mixed,
>>  multipart/alternative, text/plain, application/pgp-signature,
>>  multipart/signed, text/html, message/rfc822 for remove message
>>  attachments.
>
> Keep in mind that you can either have an "allow" list, or a "reject" 
> list, but you cannot have both.  Pick a set of MIME types that you 
> want to allow (leaving the other field empty), and everything else 
> will get thrown away.  Or, pick a set of MIME types that you want to 
> disallow (leaving the other field empty), and everything else will 
> go through.  But you can't fill in values in both fields.
>
>>  My question is it possible to get a notification sent to the 
>> administrator
>>  in addition to the rejecting of these posts.  If so how is it 
>> done, do I
>>  have to get the hosting company to change the configuration files.
>
> If you choose "Forward to List Owner" instead of "Reject" or 
> "Discard", then you will get a notice when messages are filtered. 
> Of course, this means that you'll probably get a copy of just about 
> every single message sent to the list, which I doubt is something 
> that you want.
>
>>  Information question - should I be pushing the hosting company to 
>> upgrade
>>  to the latest version of Mailman?
>
> Depends on what they're using.  Generally speaking, running the most 
> recent -RELEASE version is a good idea.  New features are added, 
> bugs are squashed, security holes are closed, etc
>
> -- 
> Brad Knowles, <[EMAIL PROTECTED]>
>
> "Those who would give up essential Liberty, to purchase a little
> temporary Safety, deserve neither Liberty nor Safety."
>
> -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
> Assembly to the Governor, November 11, 1755
>
>   SAGE member since 1995.  See <http://www.sage.org/> for more info.
>
> ---
> Text inserted by Panda Platinum 2005 Internet Security:
>
> This message has NOT been classified as spam. If it is unsolicited 
> mail (spam), click on the following link to reclassify it: 
> http://127.0.0.1:6083/Panda?ID=pav_3667&SPAM=true
> ---
>
> 


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Content Filtering - Reject

2005-07-12 Thread Brad Knowles
At 10:06 AM -0400 2005-07-12, CL-Admin wrote:

> My filter settings are Yes - image/bmp, image/gif, image/jpeg,
>  image/png, image/tiff.  for image types and multipart/mixed,
>  multipart/alternative, text/plain, application/pgp-signature,
>  multipart/signed, text/html, message/rfc822 for remove message
>  attachments.

Keep in mind that you can either have an "allow" list, or a 
"reject" list, but you cannot have both.  Pick a set of MIME types 
that you want to allow (leaving the other field empty), and 
everything else will get thrown away.  Or, pick a set of MIME types 
that you want to disallow (leaving the other field empty), and 
everything else will go through.  But you can't fill in values in 
both fields.

>  My question is it possible to get a notification sent to the administrator
>  in addition to the rejecting of these posts.  If so how is it done, do I
>  have to get the hosting company to change the configuration files.

If you choose "Forward to List Owner" instead of "Reject" or 
"Discard", then you will get a notice when messages are filtered.  Of 
course, this means that you'll probably get a copy of just about 
every single message sent to the list, which I doubt is something 
that you want.

>  Information question - should I be pushing the hosting company to upgrade
>  to the latest version of Mailman?

Depends on what they're using.  Generally speaking, running the 
most recent -RELEASE version is a good idea.  New features are added, 
bugs are squashed, security holes are closed, etc

-- 
Brad Knowles, <[EMAIL PROTECTED]>

"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."

 -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
 Assembly to the Governor, November 11, 1755

   SAGE member since 1995.  See  for more info.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Content Filtering - Reject

2005-07-12 Thread CL-Admin
List Tech administrator WEB interface only, on a hosting company, I am 
switching content filtering to Reject do to an excessive number of admin action 
posts requiring action due to users with Incredimail, Emoticons and graphics in 
signatures.  My filter settings are Yes - image/bmp, image/gif, image/jpeg, 
image/png, image/tiff.  for image types and multipart/mixed, 
multipart/alternative, text/plain, application/pgp-signature, multipart/signed, 
text/html, message/rfc822 for remove message attachments.  Lastly convert HTML 
to text,  no amount of pleading and asking has been able to get the members 
(250) to stop using images.

My question is it possible to get a notification sent to the administrator in 
addition to the rejecting of these posts.  If so how is it done, do I have to 
get the hosting company to change the configuration files.  I have 20+ years of 
computer experience, but very little in python or similar programs, can 
generally figure it out given time.

Information question - should I be pushing the hosting company to upgrade to 
the latest version of Mailman?

The Mailman-Users List has been a very helpful tool for me to learn the small 
details of the program - many thanks to the major posters - you are life savers.


Regards, 

Vern Wright

Champions Mailing List
Technical Support 

-
"Eliminate annoying spam!
My mailbox is protected by iHateSpam, the #1-rated spam buster." 
http://www.ihatespam.net
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] content filtering not working as expected

2005-03-20 Thread martin f krafft
also sprach Mark Sapiro <[EMAIL PROTECTED]> [2005.03.20.0211 +0100]:
> Beginning in 2.1.6, Privacy options...->Spam
> filters->header_filter_rules will match sub-part headers allowing
> you to match things like content-type of subparts, attachment file
> name extensions, etc. and specify Hold, Reject, Discard or Accept
> for messages that match.

Nice. I will have to wait until 2.1.6 is in Debian though, which
will be shortly after it's released... :/

-- 
martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: [EMAIL PROTECTED]
 
it is ok to let your mind go blank,
but please turn off the sound.


signature.asc
Description: Digital signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: [Mailman-Users] content filtering not working as expected

2005-03-19 Thread Mark Sapiro
martin f krafft wrote:
>
>Sorry for not seeing this. Now I wonder if it's possible to somehow
>make Mailman reject posts with unwanted attachment types... is it?
>If so, how?

Beginning in 2.1.6, Privacy options...->Spam
filters->header_filter_rules will match sub-part headers allowing you
to match things like content-type of subparts, attachment file name
extensions, etc. and specify Hold, Reject, Discard or Accept for
messages that match.

See
http://mail.python.org/pipermail/mailman-users/2005-February/042372.html
although note that that post has a link to 2.1.6b2 and the current is
2.1.6b4 on sourceforge.net.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] content filtering not working as expected

2005-03-19 Thread martin f krafft
also sprach Mark Sapiro <[EMAIL PROTECTED]> [2005.03.19.2301 +0100]:
>   Note this action is not taken if after filtering the message still
>   contains content. In that case the message is always forwarded on to
>   the list membership.

Sorry for not seeing this. Now I wonder if it's possible to somehow
make Mailman reject posts with unwanted attachment types... is it?
If so, how?

-- 
martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: [EMAIL PROTECTED]
 
the heineken uncertainty principle:
  you can never be sure how many
  beers you had last night.


signature.asc
Description: Digital signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: [Mailman-Users] content filtering not working as expected

2005-03-19 Thread Mark Sapiro
martin f krafft wrote:
>
>I have a 2.1.5 installation, and one list is using the following
>content_filter options:
>
>  filter_content = True
>  filter_mime_types = ''
>
>  pass_mime_types = """multipart
>  text
>  application/pgp-signature
>  application/pdf"""
>
>  convert_html_to_plaintext = True
>  filter_action = 1 # reject
>
>We just received a message with a application/octet_stream
>attachment. My interpretation of the settings are that the message
>should have been rejected. However, the message merely got
>filtered, the attachment was stripped, and the message passed
>through without an attachment.
>
>Is this a bug or expected behaviour?

This is expected. filter_action is only taken when nothing remains
after filtering. The following text is on the Details for
filter_action page.

  One of these actions is take when the message matches one of the
  content filtering rules, meaning, the top-level content type matches
  one of the filter_mime_types, or the top-level content type does not
  match one of the pass_mime_types, or if after filtering the subparts
  of the message, the message ends up empty.

  Note this action is not taken if after filtering the message still
  contains content. In that case the message is always forwarded on to
  the list membership.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] content filtering not working as expected

2005-03-19 Thread martin f krafft
I have a 2.1.5 installation, and one list is using the following
content_filter options:

  filter_content = True
  filter_mime_types = ''

  pass_mime_types = """multipart
  text
  application/pgp-signature
  application/pdf"""

  convert_html_to_plaintext = True
  filter_action = 1 # reject

We just received a message with a application/octet_stream
attachment. My interpretation of the settings are that the message
should have been rejected. However, the message merely got
filtered, the attachment was stripped, and the message passed
through without an attachment.

Is this a bug or expected behaviour?

-- 
martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: [EMAIL PROTECTED]
 
"sometimes the urge to do bad
 is nearly overpowering"
  -- ben horne


signature.asc
Description: Digital signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

RE: [Mailman-Users] Content filtering

2004-11-23 Thread Hong Jiang Tian
Mark,

>If you are willing to allow all text/plain parts, whether the primary
>part or an attachment, you can do that and strip everything else.
I tested it as follows:
pass_mime_types:
  multipart/mixed
  multipart/alternative
  text/plain

It works well to strip all attachments except the text/plain attachments.
But I still has a question. Is it possible to flatten the text/plain
attachments by "content filtering", so the text/plain attachments will
append to the primary part. I found that DEMIME flatten the attachments.

>If you want to strip all attachments including content-type text/plain
>attachments while allowing the primary text/plain part to go to the
>list, then the answer is no - you can't do that with content filtering
>as it exists.
If I couldn't use "content filtering" to strip text/plain attachments, did
you know which tools can do it? 

Thanks very much for your help!
Hong
--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


RE: [Mailman-Users] Content filtering

2004-11-22 Thread Mark Sapiro
Hong Jiang Tian wrote:
>
>We have some mailing lists that need to remove all types of attachments
>(whatever plain text or non-plain text) from the messages. We don't allow
>users to post the emails with attachments on these mailing lists.
>
>I have looked at FAQ 1.8 and 4.13. I also searched the archive of the
>Mailman user mailing list. I found that I could remove the MIME with HTML,
>Word or some other content types. But I didn't find the answer to remove
>attachments of the plain text file. Do you or other people know how to
>resolve it?

It depends on how you want to resolve it.

If you want to strip all attachments including content-type text/plain
attachments while allowing the primary text/plain part to go to the
list, then the answer is no - you can't do that with content filtering
as it exists.

If you are willing to allow all text/plain parts, whether the primary
part or an attachment, you can do that and strip everything else.

If you are willing to reject any post that contains any kind of
attachment and accept only single part text/plain or only single part
text/plain and text/plain parts from multipart/alternative, you can do
that too.

Examples:

To reject everything except single part text/plain set
filter_content   Yes
pass_mime_types  text/plain
filter_actionReject

To also accept plain text parts from multipart/alternative, add
multipart/alternative to pass_mime_types above. I.e pass_mime_types
becomes
  text/plain
  multipart/alternative

To accept most text/plain parts including attachments and text/plain
parts from forwarded messages, pass_mime_types becomes
  multipart/mixed
  multipart/alternative
  message/rfc822
  text/plain

There is no way to accept only the first text/plain part from a
multipart/mixed part that contains more than one text/plain part.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


RE: [Mailman-Users] Content filtering

2004-11-22 Thread Brad Knowles
At 3:25 PM -0500 2004-11-22, Hong Jiang Tian wrote:
 I have looked at FAQ 1.8 and 4.13. I also searched the archive of the
 Mailman user mailing list. I found that I could remove the MIME with HTML,
 Word or some other content types. But I didn't find the answer to remove
 attachments of the plain text file. Do you or other people know how to
 resolve it?
	So far as I know, the capabilities mentioned in 1.8 and 4.13 are 
your only options unless you want to add your own code to the 
software to achieve your goals.

--
Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See  for more info.
--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


RE: [Mailman-Users] Content filtering

2004-11-22 Thread Hong Jiang Tian
Brad,

We have some mailing lists that need to remove all types of attachments
(whatever plain text or non-plain text) from the messages. We don't allow
users to post the emails with attachments on these mailing lists.

I have looked at FAQ 1.8 and 4.13. I also searched the archive of the
Mailman user mailing list. I found that I could remove the MIME with HTML,
Word or some other content types. But I didn't find the answer to remove
attachments of the plain text file. Do you or other people know how to
resolve it?
 
Thanks for your help!
Hong



-Original Message-
From: Brad Knowles [mailto:[EMAIL PROTECTED]
Sent: Mon, November 22, 2004 2:15 PM
To: Hong Jiang Tian
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Mailman-Users] Content filtering


At 10:55 AM -0500 2004-11-22, Hong Jiang Tian wrote:

>  We use Mailman version 2.1.5. We have some mailing lists needed to strip
all
>  attachments. Since Mailman 2.1.5 has MIME support, could we just use
>  "Content filtering" to do it? Does anyone know how to set up "Content
>  filtering" to remove all attachments (including plain text attachments)
from
>  messages?

Go to the Mailman FAQ Wizard at 
<http://www.python.org/cgi-bin/faqw-mm.py>.  Look at FAQ 1.8 and 
4.13, but you should also search for "attachment".

-- 
Brad Knowles, <[EMAIL PROTECTED]>

"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."

 -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
 Assembly to the Governor, November 11, 1755

   SAGE member since 1995.  See <http://www.sage.org/> for more info.
--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


Re: [Mailman-Users] Content filtering

2004-11-22 Thread Brad Knowles
At 10:55 AM -0500 2004-11-22, Hong Jiang Tian wrote:
 We use Mailman version 2.1.5. We have some mailing lists needed to strip all
 attachments. Since Mailman 2.1.5 has MIME support, could we just use
 "Content filtering" to do it? Does anyone know how to set up "Content
 filtering" to remove all attachments (including plain text attachments) from
 messages?
	Go to the Mailman FAQ Wizard at 
.  Look at FAQ 1.8 and 
4.13, but you should also search for "attachment".

--
Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See  for more info.
--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


[Mailman-Users] Content filtering

2004-11-22 Thread Hong Jiang Tian
Hi,

We use Mailman version 2.1.5. We have some mailing lists needed to strip all
attachments. Since Mailman 2.1.5 has MIME support, could we just use
"Content filtering" to do it? Does anyone know how to set up "Content
filtering" to remove all attachments (including plain text attachments) from
messages? 

Thanks for your help!
Hong

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


Re: [Mailman-Users] Content filtering, info about removed part

2004-10-31 Thread Mark Sapiro
Jan Eri wrote:

>After some experimenting Content filtering it seems to work fine 
>(Mailman 2.1.4)
>
>But there is no information in the posted messages when an attachment 
>has been removed. Is it possible to insert a line like "Attachments in 
>original message removed" or something like that in the footer?

MimeDel.py inserts an X-Content-Filtered-By: header in any message from
which parts have been removed. Granted, this is rather subtle and
likely to be overlooked or not seen at all by message recipients, but
that's all there is without hacking the code.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


[Mailman-Users] Content filtering, info about removed part

2004-10-31 Thread Jan Eri
After some experimenting Content filtering it seems to work fine 
(Mailman 2.1.4)

But there is no information in the posted messages when an attachment 
has been removed. Is it possible to insert a line like "Attachments in 
original message removed" or something like that in the footer?

regards,
Jan
--
DIS-Norge
http://www.disnorge.no/
--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


[Mailman-Users] Content-filtering - is filtering of content-description possible?

2004-10-01 Thread Andrzej Kasperowicz
Is in the Content filtering section possible to define only content-type?
I suggest that it should be also possible to define Content-description.
Because Pegasus Mail for example when is sending an attachment it adds
content-descriprion, and mailman filter although removes the attachment
itself, it does not remove the content-describtion causing to send to the list
a message with the following text content:

-- next part --
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

    File information ---
 File:  1.jpg
 Date:  1 Oct 2004, 13:37
 Size:  8500 bytes.
 Type:  JPEG-image

==

Header of that message shows:
--Message-Boundary-14246
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

so if a content-description could be added to mailman content filtering
section then I could remove it as well.

ak

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


Re: [Mailman-Users] Content filtering

2004-02-25 Thread Tokio Kikuchi
Falks,

I have just uploaded a new patch to use Scrubber.py in
GLOBAL_PIPELINE. Check this out.
http://sourceforge.net/tracker/?func=detail&atid=300103&aid=904850&group_id=103
Cheers,

Tokio Kikuchi wrote:

Ralf Hildebrandt wrote:

* Szilard Vizi <[EMAIL PROTECTED]>:

Hello,

I want to use the Mailman's content filtering option to remove
pictures from any message and put a link in the message where
the pictures are.


Yes, this would totally rock.


Basically, you can insert Scrubber in GLOBAL_PIPELINE.
Just after MimeDel may be suitable.
I am working on per-list configurable Scrubber. Wait until
my other paid works finish.
--
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering

2004-02-24 Thread Tokio Kikuchi
Ralf Hildebrandt wrote:

* Szilard Vizi <[EMAIL PROTECTED]>:

Hello,

I want to use the Mailman's content filtering option to remove
pictures from any message and put a link in the message where
the pictures are.


Yes, this would totally rock.
Basically, you can insert Scrubber in GLOBAL_PIPELINE.
Just after MimeDel may be suitable.
I am working on per-list configurable Scrubber. Wait until
my other paid works finish.
--
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Content filtering

2004-02-24 Thread Ralf Hildebrandt
* Szilard Vizi <[EMAIL PROTECTED]>:
> Hello,
> 
> I want to use the Mailman's content filtering option to remove
> pictures from any message and put a link in the message where
> the pictures are.

Yes, this would totally rock.

> Secondly anyone has an idea how to make a similiar feature that
> Sympa has and called "Shared web". Basically this is folder inside
> the archive of the list, to where the users can upload and from
> download files.

Yep.

-- 
Ralf Hildebrandt (Im Auftrag des Referat V a)   [EMAIL PROTECTED]
Charite - Universitätsmedizin BerlinTel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-BerlinFax.  +49 (0)30-450 570-916
IT-Zentrum Standort Campus Mitte  AIM.  ralfpostfix

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Content filtering

2004-02-24 Thread Szilard Vizi
Hello,

I want to use the Mailman's content filtering option to remove
pictures from any message and put a link in the message where
the pictures are.

I couldn't find the right solution so far, and I don't want to
play with a real list, so can anyone tell me what options do
I need to change.

Secondly anyone has an idea how to make a similiar feature that
Sympa has and called "Shared web". Basically this is folder inside
the archive of the list, to where the users can upload and from
download files.
In Mailman I don't think that creating a folder with the right 
permission in the archive/private// would be enough.

How can I make such a "Shared web" with mailman?

Thanx,
Szilard Vizi

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] COntent Filtering (was Re: Rejecting Messages)

2003-02-12 Thread LuKreme
On Tuesday, Feb 11, 2003, at 20:20 Canada/Mountain, Matthew Davis wrote:

* Warren Hoffman ([EMAIL PROTECTED]) wrote:

Also - it would be wonderful if we could let some attachment types 
through
- specifically .vcf and .dat as they're harmless and usually come from
email systems like Outlook. Again, we're limited, so if someone could 
spell
this out it would be very, very helpful. The reason we screen is 
because we
don't want to pass anything on that might have a virus.

Don't know about the first one.  But this one I might can shed some 
light
on.

vcards have the Content-Type: text/x-vcard

So it should be as easy as adding 'text/x-vcard' to 'pass_mime_types' 
on the
'Content Filtering' page using mailman 2.1.  mailman 2.0 doesn't have
content filtering.

While we're here, does anyone have some recommendations on what to put 
in the content filtering section?  I have audio (Klez) and application 
in the filter list and my pass-types is blank.  I do want to allow 
photos and various other attachment types to the list, just not windiod 
viruses since no one on the list can seem to keep their computers clean.

--
Eyes the shady night has shut/Cannot see the record cut
And silence sounds no worse than cheers/After earth ahs stopped the 
ears.


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org