[Debian]:Re: procmail: dupes in Mailinglisten?
Jens Benecke <jens@pinguin.conetix.de> wrote:
> es gab doch mal eine Möclichkeit, procmail zum Verschlucken von
> doppelten Message-IDs, z.B. von Mailinglisten zurückgeschickten
> selbst verfaßten Mails zu bringen.
> Ich habe leider weder in /usr/doc noch in man etwas gefunden. Kann
> mich jemand mal mit der Nase drauf stoßen?
> Roland? ;-)
Erstmal natürlich der Hinweis, daß Du schlecht in den man pages
gesucht hast ;-)
Und dann ein Auszug aus procmailex(5):
If you are subscribed to several mailinglists and people
cross-post to some of them, you usually receive several
duplicate mails (one from every list). The following sim
ple recipe eliminates duplicate mails. It tells formail
to keep an 8KB cache file in which it will store the Mes
sage-IDs of the most recent mails you received. Since
Message-IDs are guaranteed to be unique for every new
mail, they are ideally suited to weed out duplicate mails.
Simply put the following recipe at the top of your rcfile,
and no duplicate mail will get past it.
:0 Wh: msgid.lock
| formail -D 8192 msgid.cache
Beware if you have delivery problems in recipes below this
one and procmail tries to requeue the mail, then on the
next queue run, this mail will be considered a duplicate
and will be thrown away. For those not quite so confident
in their own scripting capabilities, you can use the fol
lowing recipe instead. It puts duplicates in a separate
folder instead of throwing them away. It is up to you to
periodically empty the folder of course.
:0 Whc: msgid.lock
| formail -D 8192 msgid.cache
:0 a:
duplicates
Tschoeeee
Roland
--
* roland@spinnaker.de * http://www.spinnaker.de/ *
PGP: 1024/DD08DD6D 2D E7 CC DE D5 8D 78 BE 3C A0 A4 F1 4B 09 CE AF
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder: 735
Reply to: