Results 1 to 2 of 2
  1. #1
    Moderator ifurniss's Avatar
    Join Date
    Oct 2009
    Location
    Utah
    Posts
    47

    Thumbs up Recent sa-learn information

    This is a brief post, as the details for SpamAssassin's sa learn are located here.

    If you would like to train your SpamAssassin in the Site Manager environment you can upload spam messages to a directory and then run a command similar to this:
    sa-learn --spam /var/spool/maildirs/[$username]/.LearnAsSpam/cur
    Isaac Furniss
    Technical Support Team Manager
    Contact Support: E-mail | Live Chat | Twitter

    http://www.westhost.com/

  2. #2
    Junior Member
    Join Date
    Apr 2011
    Posts
    1

    Default

    sa-learn doesn't seem to be present, so I did the following, catting all IMAP mail into a single file then using spamc client:

    Spam:
    [username][~]$ ls -1 /var/spool/maildirs/username/.Junk/cur | while read file; do cat /var/spool/maildirs/username/.Junk/cur/$file >> all.spam; done
    [username][~]$ cat all.spam | formail -s spamc -L spam -u username

    Ham:
    [username][~]$ ls -1 /var/spool/maildirs/username/cur | while read file; do cat /var/spool/maildirs/username/cur/$file >> all.ham; done
    [username][~]$ cat all.ham | formail -s spamc -L ham -u username


    see also: http://www.cs.umd.edu/faq/spam/

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •