[EMAIL PROTECTED] wrote:

have you any examples of tools that do this? i cant seem to find anything
anywhere =/



I should have added, if you are using maildrop for filtering users' mail then something like this in the user's maildrop config file will filter their mail to a Spam folder in maildir format and create the folder if it doesn't exist. maildrop also supports mbox, but I don't use it so you will have to google for an mbox solution. Note that the filtering portion of this example is based on the use of spamassassin, you would need to adjust this to fit whatever spam filtering tool you are using.

SHELL="/bin/sh"
MAILDIR="/path/to/users/Maildir"

# Spam mail moved to Spam folder
if (/^X-Spam-Status: Yes/:h)
{
       `test -d $MAILDIR/.Spam`        # Make sure .Spam folder exists
       if( $RETURNCODE == 1)
       {
               `/usr/bin/maildirmake.maildrop -f Spam $MAILDIR`
       }
       to "$MAILDIR/.Spam"
}

# If nothing matches, deliver normally
to "$MAILDIR"



Hope that helps, or at least gets you thinking about what you want to do. BTW, procmail is another popular way to filter inbound mail and it can also be configured to automatically create folders.

- Ben


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?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

Reply via email to