[grepmail-devel] uniq patch for grepmail
Brought to you by:
coppit
From: Seth C. <se...@or...> - 2000-04-16 08:07:08
|
David, enclosed find a patch for grepmail. It does -u as a uniq function. After I finished it, I realized I didn't have to make it exclusive from -b, -s, -d, etc... But I decided that a working patch was better than spending more time to 'do it right'. It does work with -v, etc... Also, added --help, as the standard usage The patch was built from 4.24 grepmail.DP and mostly applies to grepmail.DM (1 hunk fails to apply, played with it, not sure why... but it's a trivial change, just read the reject file and fix it.) I'm only sending the 1 patch, rather than 2 separate ones, because it's an easy patch to apply to both, and maybe you can figure out the reason it's not applying as smoothly to the second. Your idea for code was pretty much what I did, except I put the message_id check into the header scan. Made the most sense, and cuts down on scan time too. When I fix it so that b,d,or s works again, should be similar to the effects -h has now on things. my sourceforge id is sethcohn, if you add me to the developer list, I'll do it via CVS next time... much cleaner, no patch file needed. Bang on this a bit... I'm pretty sure it's ok, but.... thanks for the fun.... been a while since I contributed something of real value codewise. My perl skills are just shaky enough that this made a good project for me. Seth |