procmail
[Top] [All Lists]

Re: duplicate message-id filter isn't working for me (procmail 3.11pre7)

1997-10-28 03:38:09
| Mon 97-10-27 Lars Kellogg-Stedman <lars(_at_)bu(_dot_)edu> list.procmail
| LOCKFILE=$IDCACHE_FILE.lock
| 
| :0H
| * ^Message-ID:
| * ? $FORMAIL -D $IDCACHE_LEN $IDCACHE_FILE
| {
|         LOG="dupecheck: discarded $MESSAGEID from $FROM
| "
|         :0
|         $DUPE_DEST
| }
| 
| LOCKFILE
| 
| The LOCKFILE lines create a local lock file for this section of code --
| this seems necessary to me to prevent two instances of procmail from
| tromping on the idcache file.

I didn't quite follow this LOCKFILE usage. Can't it be placed to
the beginning of receipe. Like this? (Never mind that H is useless here9

        :0H : $LOCKFILE
        * ^Message-ID:

jari

<Prev in Thread] Current Thread [Next in Thread>