ietf-mta-filters
[Top] [All Lists]

Re: extensions and sieve

2003-02-03 13:56:27

Anyone could help me? I need filter mails by extensions (.exe .vbs ....).
How i can do a rule to this?

The Sieve spec doesn't natively support any kind of test on the content of
the message, only the headers, envelope and size of the message.  Sieve is
currently not MIME aware at all.

However some implementation have some kind of X_body test that allows you to
search against the body of the message, but it's all a bit of kludge.  It's
only really worthwhile if it's available in conjunction with the regex
extension, and even then it becomes extremely CPU intensive, and a problem
for the server.

The better solution is to wait for us to knock together some kind of mime
aware syntax that allows us to say "emails that contain attachments of type
X"...

Doing this with MailSite for example, involves following the advice found in
the following KB articles:
http://www.rockliffe.com/support/docs/html/1/00/10039.asp
http://www.rockliffe.com/support/docs/html/1/00/10078.asp

The KB articles describe how to enter the filters into the gui, but if you
click the "advanced" button then you get to see the Sieve it produces in all
it's glory.

BTW, this list is NOT designed to answer this kind of query... it's for
discussion and creation of new Sieve standards/specs.  Advice on this kind
of thing should be solicited from your mail server provider.

Cheers

Nigel


<Prev in Thread] Current Thread [Next in Thread>