Great Circle Associates Majordomo-Users
(July 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: restrict posting - attachments
From: Ben Smithurst <ben @ scientia . demon . co . uk>
Date: Wed, 22 Jul 1998 14:39:26 +0100
To: "Junaedy J." <LtOoNs @ UsA . nEt>, majordomo-users @ greatcircle . com
In-reply-to: <199807180924.CAA02447@honor.greatcircle.com>
Mail-followup-to: "Junaedy J." <LtOoNs@UsA.nEt>,majordomo-users@greatcircle.com
References: <199807180924.CAA02447@honor.greatcircle.com>
User-agent: Mutt/0.93i

Junaedy J. wrote:

> If I want to restrict the subscriber of my list from sending
> attachment, how should I write it in taboo_header?

First, you could just set the max size to 20k or so, since most
attachments will come out more than that. To catch the ones that don't,
and also to catch html shit, though you will have to use taboo_header.

> The header of posting which contains attachment usually has something
> that read like this: "Content-Type: multipart/mixed"

I use

/^content-type:.*multipart/i

in taboo_headers, and

/^begin \d\d\d /i

in taboo_body. I'm not sure the last one's perfect, but it should catch
some uuencoded attachments. (\d = a digit, aiui)

> I am confused how to differ a character "/" between the word
> "multipart" and "mixed" and the character "/" that is intended as
> the end of regular expression.

Precede it by a backslash. So if you only want to stop
multipart/mixed, rather than any multipart message as mine would...
(remember that some things are multipart/alternative)

/^content-type: multipart\/mixed/i

btw: your line lengths are too long; please keep them below 80
characters.

-- 
Ben Smithurst <ben@scientia.demon.co.uk> <http://www.scientia.demon.co.uk/>


References:
Indexed By Date Previous: Re: HELP!!!
From: Ben Smithurst <ben@scientia.demon.co.uk>
Next: Re: What is error 17152?
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: restrict posting - attachments
From: Mats Dufberg <Mats.Dufberg@abc.se>
Next: [no subject]
From: "laus" <laus@gmx.de>

Google
 
Search Internet Search www.greatcircle.com