Re: policy around 'wontfix' bug tag
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, Feb 05, 2018 at 09:44:43AM -0500, The Wanderer wrote:
> On 2018-02-05 at 09:32, David Wright wrote:
[...]
> > :0 Wh: $HOME/msgid.lock
> > | formail -D 199999 $HOME/msgid.cache
> >
> > I used it for years.
>
> I don't parse this well enough to understand what it would do, and I
> don't know where to find a procmail reference which would let me read up
> on it easily enough to understand quickly. Could you clarify?
The trick is in formail (contained in the package procmail). Formail is
a pretty generic mail parser which can be used to filter mails (or parts
of mails) according to different criteria. Option -D instructs it to set
up a Message-ID cache to drop duplicate mails (duplicate in the sense of
Message-ID, that is). The number after the -D limits the cache's length.
As a careful guy, I have this:
:0 Whc: msgid.lock
| formail -D 8192 ~/.procmail/msgid.cache
:0 a:
duplicates
The 'c' in the first recipe lets a copy "pass through". The second
rule triggers on successful execution of the first one (i.e. a cache
hit, "this was a duplicate") and drops the duplicate into the mailbox
duplicates, where I can check whether something went wrong. Needless
to say, I haven't had to check in the last ten years, but disk space
is cheap :)
Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlp4c5cACgkQBcgs9XrR2ka+bgCfd/ZKJyaLEAqNNgDHtMcs+a43
jE4An1QkauXZ10+quCxvwIY1nBskMtM9
=YnjT
-----END PGP SIGNATURE-----
Reply to: