Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: [Original edit by JustinMason] oops, also the wrong way around

...

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

...