Re: [exim] Deduplicate message copies

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-users
Betreff: Re: [exim] Deduplicate message copies
Heiko Schlittermann <hs@???> (Di 13 Mai 2014 12:38:15 CEST):
> Heiko Schlittermann <hs@???> (Di 13 Mai 2014 12:29:44 CEST):
> …
> >
> > I'd say, the only way is comparing the complete message (header and
> > body). I can imagine some kind of ratelimit, based on the hash of the
> > message headers and body. Maybe some shortcut can be to use only the
> > complete message headers.
> >
> > I'd try to use some ratelimit keyed on the messages body.
>
> I ment the message headers, because the body isn't fully available
> (except your rise message_body_visible main variable to provide enough
> space.)
>
> On the other hand, the $message_headers isn't very helpful at the DATA
> ACL, since the received headers are added already, and they contain
> timestamps. Thus - a bit more work is necessary…


May be something like this could do:

    acl_check_data:


        deny    message = duplicate ($sender_rate)
                ratelimit = 1.1/1000w/strict/${sha1:$h_date:$h_subject:$h_message_id:}
        accept



The list of headers should be adapted to your idea about what
is a dup.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-