Say no to “My Party” with SieveFebruary 04, 2002"My party... It was absolutely amazing!" said the email that many of us received multiple copies of last week. The "My Party" virus arrived in mailboxes everywhere last Monday, spreading quickly partly because it tricked novice computer users into executing the attachment named "www.myparty.yahoo.com" which resembled a web link. The file was actually a Windows .com file which used the Microsoft Outlook and Windows address books to propagate to other computers. Those of us who use the Mac or Linux operating systems or use
pine, have nothing to worry about. Nevertheless, receiving a new
copy of the same email every hour or two can become quite annoying.
In this case, the answer to our prayers is the sensibly named Sieve.
Sieve is a Unix program that allows Carnegie Mellon students to
filter the email they receive to their Andrew address. require "reject"; After you have placed the completed script in your Andrew home
directory, you need to enter the following commands into a telnet
window: You should replace ".sieve" with the name of your script
file if you named it differently. require "fileinto"; You must have a "spam" folder already created in your mail system. Don't forget to repeat the sieveshell commands to update your sieve file on the Cyrus server. The code above will automatically send any emails with the correct subject line to your Inbox.spam folder instead of to your regular Inbox folder. This allows you to get spam mail out of the way without risk of rejecting legitimate mail. The fileinto command is also useful for simply sorting your email. If you're like most Carnegie Mellon students, you probably get lots of mail each day. You can use fileinto to sort your mail into different folders - for example, if you regularly receive a newsletter from someone with an email address of acarnegie@andrew.cmu.edu, you can use the following lines to automatically file it into a folder: require "fileinto"; Complete instructions and a link to the Sieve manual page are available at http://www.cmu.edu/computing/documentation/sieve/sieve.html. |