Spamassasin Manual Learning

From LinuxizeNet
Revision as of 06:43, 19 January 2024 by Datanasov (talk | contribs) (Created page with "===Training with Maildir format=== Maildir format is a bit different -- it stores each message in a seperate file within one of three subdirectories ('cur', 'new', and 'tmp'). Instead of pointing sa-learn at a specific mbox or mbx file, you point sa-learn at the directories and it looks at all the files inside: sa-learn --no-sync [--spam or --ham] [folder/{cur,new}] For example: sa-learn --no-sync --spam ~/Maildir/.INBOX.Spam/{cur,new} or sa-learn --no-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Training with Maildir format

Maildir format is a bit different -- it stores each message in a seperate file within one of three subdirectories ('cur', 'new', and 'tmp'). Instead of pointing sa-learn at a specific mbox or mbx file, you point sa-learn at the directories and it looks at all the files inside:

   sa-learn --no-sync [--spam or --ham] [folder/{cur,new}]

For example:

   sa-learn --no-sync --spam ~/Maildir/.INBOX.Spam/{cur,new}

or

   sa-learn --no-sync --ham ~/Maildir/.INBOX/{cur,new}