Hi Scott,
* Scott Jones <sanch...@gmail.com> [25. Dec. 2010]:
> I have MUTT set up and working on my system. I don't use it though
> because 1) the inbox is stuffed with several THOUSAND message through
> which I need to sort and delete the spam and 2) I haven't yet figured
> out how to set up SpamAssassin to filter the junk out. My question:
> can I just copy the current inbox to a backup file and start fresh,
> after getting SA set up and trained, so that I can get all my mail
> from MUTT? 

Yes.  You could tag all messages "T ~A" and save ";s" them in a backup
file (folder).  Then your inbox will be empty.

But if you want to use spamassassin effectively you will have to
constantly train it's filter.  Thus you should have a mechanism
to tell spammassassin if emails which were classified as spams
are actually "ham" (emails you want to receive) and vice versa.

This can quite easyly done with macros within mutt.


But first the spamassassin setup:

If you use mutt on a recent Linux system you could install
procmail and spamassassin/spamc.  I use spamassassins daemon mode
and filter emails like this in ~/.procmailrc:


   MAILDIR=$HOME/Mail
[other variables]
[other recipes]

   # let spamassassin work on a copy of the mail to determine its
   # exit value
   :0fwc
   * < 256000
   |env LANGUAGE=de spamc  -x
                                   
   ## Small e says "on error"     
   :0 e                           
   ${MAILDIR}/procmailrcerror/    

This way, if something goes wrong with spamd/spamc, the email
gets saved in ${MAILDIR}/procmailrcerror/ (which a cron job
processes, but this can also done manual).

   :0
   * ^X-telegraph-Spam-Status:.*Yes, hits=
   ${MAILDIR}/spam/ 
[other recipes]
   :0
   ${MAILDIR}/inbox/    



When your spamassassin setup works you can filter your backup of
emails trough it (depends on your spamassassin setup).



Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-

Reply via email to