Re: [exim] hash{20}{62}

Top Page
Delete this message
Reply to this message
Author: Ron White
Date:  
CC: exim-users
Subject: Re: [exim] hash{20}{62}
On Tue, 2012-05-22 at 17:47 +0100, exim-users@??? wrote:
> On 22/05/12 17:42, Ron White wrote:
>
> > Good afternoon,
> >
> > I came across this:
> >
> > warn set acl_m4 = ${hash{20}{62}{$sender_address$recipients
> > $h_message-id:}}
> >
> > ...and realised I'd never seen it before.
> >
> > My Googling to find out what the figures symbolise is getting me
> > nowhere, has anyone got a link to an explanation?
>
> I went to http://exim.org/ and stuck "${hash" in the "Search Docs" field
> at the top of the page. The top hit was to the String Expansions page in
> the Exim docs here:
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch11.html
>
> I visited that page and searched it for the string "${hash". The
> explanation is there.
>


That's just what the doctor ordered. Thank you so much, really
appreciated.

Ron

${hash{<string1>}{<string2>}{<string3>}}

        This is a textual hashing function, and was the first to be
        implemented in early versions of Exim. In current releases,
        there are other hashing functions (numeric, MD5, and SHA-1),
        which are described below.


        The first two strings, after expansion, must be numbers. Call
        them <m> and <n>. If you are using fixed values for these
        numbers, that is, if <string1> and <string2> do not change when
        they are expanded, you can use the simpler operator notation
        that avoids some of the braces: