Hi James,

> Has anyone written a script that run sa-learn through an IMAP folder?

Yes.  Try this one:

$ cat trainbayes
#!/bin/bash
sa-learn --no-rebuild --ham --dir /home/mail/amavis/maildir/.ham/cur/
sa-learn --no-rebuild --spam --dir /home/mail/amavis/maildir/.spam/cur/
sa-learn --rebuild

-- 
Regards,
+-----------------------------+---------------------------------+
| Peter Kiem            .^.   | E-Mail    : <[EMAIL PROTECTED]> |
| Zordah IT             /V\   | Mobile    : +61 0414 724 766    |
|   IT Consultancy &  /(   )\ | WWW       : www.zordah.net      |
|   Internet Services  ^^-^^  | ICQ       : "Zordah" 866661     |
+-----------------------------+---------------------------------+
       My current spamtrap address is [EMAIL PROTECTED]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to