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:
|
|