Guy Geens on Sun, 23 Jun 1996 wrote:
On Sun, 23 Jun 1996, Timothy J. Luoma wrote:
I imagine that I can use 'formail' to fix this, but I checked the
manpage and wasn't able to figure it out. I imagine it is simple,
but I don't understand how to do it.
Try this:
formail -s procmail nodups.rc <mailbox
The file nodups.rc should contain:
When a duplicat is found, formail -D will return 0, so procmail
will end
0Wh
|formail -D 8192 idfile
If we get here, we know it's a new message
0
mailbox.new
Please note: if you want to incorporate this in a .procmailrc that
processes incoming mail, be sure to add lockfiles.
Well, it worked, and damn well too...
To tell you how bad I had screwed things up, this process cut one
mailbox from 1017 message to 369 (1.9 megs difference in size)!
Thanks very much for a very clear answer.
TjL
--
Timothy J. Luoma, currently with nothing witty to put in his .sig
luomat(_at_)nerc(_dot_)com <<--NEW address (NeXT/MIME OK!)