Eric Beda wrote: > 1. I want my users to have an automatically created spam folder > 2. To automatically redirect spam to this folder
Use a mail delivery agent like maildrop or procmail. For maildrop,
something like below should work in maildroprc:
maildirmake=/usr/bin/maildirmake
MAILDIR=$DEFAULT
JUNK_FOLDER=.Spam
_JUNK_DEST=$MAILDIR/$JUNK_FOLDER/
#automatically create the Junk folder
`test -d $_JUNK_DEST`
if ($RETURNCODE != 0 )
{
`$maildirmake $_JUNK_DEST`
# auto subscribe. the following works for courier-imap
`echo INBOX$JUNK_FOLDER >> $MAILDIR/courierimapsubscribed`
}
# Spam gets tagged with X-Spam-Flag
if ( /^X-Spam-Flag: YES/:h )
{
exception {
to "$_JUNK_DEST"
}
}
else
{
exception {
to "$MAILDIR/"
}
}
--
Eray
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
