delivering SPAM to user folders

Mark Nienberg mark at TIPPINGMAR.COM
Fri Feb 11 17:51:00 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Karen Mkoyan wrote:

>Hello,
>Is there any script(s) available that delivers mail already  marked as
>{SPAM} to ~user/mail/spam
>
>
>
The following ".procmailrc" script can be placed in each user's home
directory so that procmail will deliver messages marked as spam into a
paricular mailbox named "spam".  I assume your users have IMAP access so
they will be able to view the spam folder.  Maybe this can be done on
systemwide basis, but I haven't thought about that.

MAILDIR=$HOME/mail       # Make sure this directory exists!

  # Move Mailscanner marked spam to Spam folder
  :0:
  * ^Subject:.\{Spam\?
  spam

--
Mark Nienberg, SE
Tipping Mar + associates
1906 Shattuck Ave
Berkeley, CA 94704
http://www.tippingmar.com

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list