You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by co...@spamassassin.apache.org on 2005/03/19 20:21:20 UTC
[SpamAssassin Wiki] Updated: RemoteImapFolder
Date: 2005-03-19T20:21:20
Editor: DanKohn
Wiki: SpamAssassin Wiki
Page: RemoteImapFolder
URL: http://wiki.apache.org/spamassassin/RemoteImapFolder
Reorganized and added link+anchor to SingleUserUnixInstall
Change Log:
------------------------------------------------------------------------------
@@ -1,9 +1,12 @@
-= SpamAssassin Integration into your IMAP Folder =
+= Training SpamAssassin with a LearnAsSpam folder =
+
+The simplest use of IMAP is to give end-users a way to train on false positives with a Learn``As``Spam folder. A cron job with a command like {{{/usr/local/bin/fetchmail -a -s -n --folder LearnAsSpam -m '$HOME/bin/sa-learn --spam' > /dev/null"}}} will do this. More details are in the [wiki:Self:SingleUserUnixInstall#head-7fe60adb0e4464b90a6fe1b4c310b93fe36dccdf IMAP section of SingleUserUnixInstall].
+
+= Running SpamAssassin on mail in your IMAP inbox =
If you have Spamassassin working, but your main mailbox is on a remote Imap folder, you can use Roger Binns' Isbg (Imap Spam Be Gone).
The software can be found [http://www.rogerbinns.com/isbg/ here], and an introduction to its use can be found at [http://www.stearns.org/doc/spamassassin-setup.current.html#isbg here].
-
= SpamAssassin IMAP shared folders for groups of users =
http://www.dmzs.com/tools/files/spam.phtml
@@ -16,8 +19,7 @@
There's also [http://da.andaka.org/Doku/imapspamfilter.html this] docu which might work, YMMV.
-
-= Quick fetchmail hack to provide "Learn Ham" and "Learn Spam" folders =
+= Providing "Learn Ham" and "Learn Spam" folders that move but don't delete messages =
I use SpamAssassin to filter mail as it comes through my MTA, before it hands the mail off to my Cyrus IMAP server. I wanted to provide my users a way to drag false-positives and false-negatives from their Junk Mail or Inbox to another folder or folders. The mail should be picked up from that folder, learned, and then re-deposited in the "corrrect" folder, either inbox for learned-ham or junk-mail for learned-spam. For false-positives which had previously been marked up as spam, the SpamAssassin markup should be removed so the "clean" message winds up in the inbox. In the end, this turns out to be a single-line fetchmail script for each folder: