I've got 2 email addresses, say spam@me.org and mail@me.org What I want to do is remove anything sitting in the spool for mail that gets sent to spam. At the mo' I've got procmail to nix duplicates:
:0 Whc: msgid.lock | formail -D 16777216 data
:0 a: dupe
And then zap anything going to spam@ This gets rid of anything that goes to mail@ that's already been seen at spam@ but does no good if the other way round. Also this works on msgids, so can get fooled. Is there an apt-gettable tool for doing this? And a better way of fingerprinting msgs? All I can think of at the mo' is to use dbmail as the store and write a small sql script to drop by msgid when something comes in for spam@ ...