[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] List Repeatds



Hi,

RAVIKANT K RAO typed:
> the giasmda mail system is *slightly* broken ....

I doubt that that's the problem - I'm getting the old duplicates even
with the LI digest!

> [ on more serious thought : some guy posted an amazing bit of code
> to plug into your .procmailrc | .muttrc and that actually checks
> your mails - scans thro' them etc. looking for duplicate message-ids
> etc... and deletes duplicates - will see if I can send that over
> some time...  ]

Here is the code to check for and weed out duplicates in incoming mail
from my .procmailrc:

-----
:0 Whc: msgid.lock
| formail -D 8192 msgid.cache

:0 a:
duplicates
-----

Put that before all the recipes, and you'll be free of all
duplicates. formail maintains a cache (8192 bytes approx) of the
last message IDs, and if the incoming mail is a duplicate, it puts it
into duplicates. 

PS: This code was taken from procmailex(5).

-- 
Mrinal Kalakrishnan <mrinal@xxxxxxxxx> (PGP:B1E86F5B) http://listen.to/mrinal
- - - - = ( Redhat Linux 6.1 ) = - - - - = ( Kernel 2.2.12-20 ) = - - - -
Machinists make the best screws.
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.