THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
grep X-Mass-Check-Id mbox | sed -e 's/^X-Mass-Check-Id: //' > id.fpsfns ./remove-ids-from-mclog id.fpsfns < spam.log > spam.log.new mv spam.log.new spam.log |
You can also remove the offending files, or messages from the source mailboxes, directly. However, this depends on what format you use to store messages; Maildirs, mboxes, etc. etc. (Maildirs are easiest, since you can just delete the files named in the 'id.fpsfns' file.)
Doing the same operation to clean the ham corpus of FalsePositives is similar, but reverses a few things... here's the commands to do that:
...
No Format |
---|
grep X-Mass-Check-Id mbox | sed -e 's/^X-Mass-Check-Id: //' > id.fnsfps ./remove-ids-from-mclog id.fnsfps < ham.log > ham.log.new mv ham.log.new ham.log |
...