Spamassasin Manual Learning: Difference between revisions
From LinuxizeNet
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<div style = "line-height: 1.2"> | |||
{{clear}}</div></div><div style = "margin-top: 1.5em; border: 3px solid #ae8c55; border-radius: .5em; padding: 1em 1.5em; font-size: 1.2em"> | |||
<strong></strong> | |||
;Training with Maildir format | ;Training with Maildir format | ||
Revision as of 20:12, 6 March 2024
- 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}