Re: Config question

Magnus Holmgren <[email protected]> Sat, 12 Sep 2009 12:18:03 +0200
Newsgroups gmane.mail.exim.spamassassin
Organization Lysator ACS
Message-ID <[email protected]>
--===============1601141045==
Content-Type: multipart/signed; boundary="nextPart4237622.REIZcEbubh";
	protocol="application/pgp-signature"; micalg=pgp-sha1
Content-Transfer-Encoding: 7bit

--nextPart4237622.REIZcEbubh
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On l=F6rdagen den 12 september 2009, Brian Lavender wrote:
> This is the sample config and comments on my system. What exactly does the
> {::1} mean?
>
> Is this some sort of LISP or M4 syntax? Sorry, I am not too familiar
> with LISP yet.

It's (part of the) Exim string expansion syntax. See http://www.exim.org/ex=
im-
html-current/doc/html/spec_html/ch11.html. The language is functional, like=
=20
Lisp, but that's where the similarities end. What you have below is an ${if=
 }=20
item with a composite condition ("and { }"). The "and" condition takes any=
=20
number of subconditions, each enclosed in braces. The "eq" condition takes =
two=20
operands, also enclosed in braces, whereas the "def" condition takes just o=
ne=20
after a colon but with no braces. So {::1} is just an IPv6 address enclosed=
 in=20
braces to separate it from the other operand, $sender_host_address.

> SAEximRunCond: ${if and {{def:sender_host_address} {!eq
> {$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}}}

=2D-=20
Magnus Holmgren        [email protected]
                       (No Cc of list mail needed, thanks)

  "Exim is better at being younger, whereas sendmail is better for=20
   Scrabble (50 point bonus for clearing your rack)" -- Dave Evans

--nextPart4237622.REIZcEbubh
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkqrdVwACgkQk7mRNn1h4+bn8QCdEoQ/pu/nF5pTVlSZJ5O+/FjG
b2cAnRF/fZdEIHfzEC4BwZMJ9b5NE/tz
=fGrK
-----END PGP SIGNATURE-----

--nextPart4237622.REIZcEbubh--


--===============1601141045==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
SA-Exim mailing list
[email protected]
http://lists.merlins.org/lists/listinfo/sa-exim

--===============1601141045==--