Re: [exim] Proposal: $message_body_hash_sha1

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jakob Hirsch
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Proposal: $message_body_hash_sha1
Heiko Schlittermann, 2010-06-11 08:46:

> So, to get the long story short: I thinking about having
>
>     $message_body_hash_sha1 

>
> (or something similar, the "interface" could be thought about)
>
> What do you think? (I believe, the implementation shouldn't be too
> difficult (\0 are already counted, thus some part of the code seems to
> see the "message stream").


Hm, do you really need the _whole_ body? Otherwise,
${sha1:$message_body} would do what you want (hash the first 500 bytes).
Otherwise I guess you could set message_body_visible to a high enough
number (like message_size_limit), but I'm not sure how efficient Exim is
handling such big strings. OTOH, it probably doesn't matter much on
todays machines, as long as you are not hitting some internal limits
(which I don't know of). If you care about efficiency, you could use dlfunc.
Or is this something useful for other Exim users, too?