Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page Sieve mail filter script
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 05-10-2008   #1 (permalink)
ghell
Just Joined!
 
Join Date: Sep 2007
Posts: 6
Sieve mail filter script

I'm having a bit of trouble finding resources on Sieve other than it's RFC, which is a bit overkill.

I just want mails tagged by spamassassin as spam to go to a "Junk" directory and mails with a very large spam rating to be discarded completely.

I have this to move spam to "Junk" and it works fine.
Code:
require ["fileinto"];

if header :contains "X-Spam-Flag" ["YES"] {
  fileinto "Junk";
  stop;
}
I want to discard anything with a rating of 10 or higher because otherwise each mailbox collects at least 100 spams a day.

I tried adding
Code:
if header :matches "X-Spam-Level" "\*\*\*\*\*\*\*\*\*\*" {
  discard;
  stop;
}
before the working X-Spam-Flag block but this just discarded everything.
ghell is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 03:17 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0