Re: [SLUG] Duplicate Mails and Procmail (CORRECTION!)

From: Paul M Foster (paulf@quillandmouse.com)
Date: Tue Jun 26 2001 - 19:29:39 EDT


On Tue, Jun 26, 2001 at 07:10:31PM -0400, Paul M Foster wrote:

> SLUGs:
>
> For those of you getting duplicate mails, there is a procmail solution.
> According to:
>
> man procmailex
>
> You can put this recipe at the top of your ~/.procmailrc file:
>
> :0 Wh: msgid.lock
> | formail -D 8192 msgid.cache
>
> This creates an 8K message ID cache, which is checked each time procmail
> is called (each email). It kills dupes. If you're paranoid, you can add
> the following recipe just below it:
>
> :0 a:
> duplicates
>
> This will put the dupes in a folder for you to look at later, if you
> wish.
>
> Of course, this won't solve the problems of you getting dupes; you just
> won't _see_ them.
>
> Paul
>

ARGH! I hate it when I do this! If you want the dupe emails in a folder,
use the following instead of what I said above:

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

:0 a:
duplicates

(The difference is the "c" flag in the first recipe.)

Sorry. :-(

Paul



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:04:59 EDT