Spamassasin Manual Learning: Difference between revisions
From LinuxizeNet
(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-...") |
(Remove inert legacy #ae8c55 wrapper (superseded by site CSS)) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{clear}} | |||
;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: | 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: | ||
| Line 12: | Line 13: | ||
sa-learn --no-sync --ham ~/Maildir/.INBOX/{cur,new} | sa-learn --no-sync --ham ~/Maildir/.INBOX/{cur,new} | ||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Postfix]] | [[Category:Postfix]] | ||
[[Category:Howto]] | |||
Latest revision as of 21:02, 9 August 2026
- 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}