Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

hash{20}{62}

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


exim.ml at riotm

May 22, 2012, 9:42 AM

Post #1 of 3 (179 views)
Permalink
hash{20}{62}

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?

Kind regards
Ron



--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim-users at lists

May 22, 2012, 9:47 AM

Post #2 of 3 (176 views)
Permalink
Re: hash{20}{62} [In reply to]

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.

--
Mike Cardwell https://grepular.com/ http://cardwellit.com/
OpenPGP Key 35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F
XMPP OTR Key 8924 B06A 7917 AAF3 DBB1 BF1B 295C 3C78 3EF1 46B4
Attachments: signature.asc (0.58 KB)


exim.ml at riotm

May 22, 2012, 10:05 AM

Post #3 of 3 (174 views)
Permalink
Re: hash{20}{62} [In reply to]

On Tue, 2012-05-22 at 17:47 +0100, exim-users [at] lists 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:



--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.