Re: [exim] Rejecting RunTogetherSubjects

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ted Cooper
Date:  
À: exim-users
Sujet: Re: [exim] Rejecting RunTogetherSubjects
On 09/04/11 10:02, Karl Schmidt wrote:
> The missing secret sauce was the \N before and after the \S{25}
>
> Not exactly sure why?


http://docs.exim.org/current/spec_html/ch11.html

<quote>

1. Literal text in expanded strings

An uninterpreted dollar can be included in an expanded string by putting
a backslash in front of it. A backslash can be used to prevent any
special character being treated specially in an expansion, including
backslash itself. If the string appears in quotes in the configuration
file, two backslashes are required because the quotes themselves cause
interpretation of backslashes when the string is read in (see section 6.16).

A portion of the string can specified as non-expandable by placing it
between two occurrences of \N. This is particularly useful for
protecting regular expressions, which often contain backslashes and
dollar signs. For example:

deny senders = \N^\d{8}[a-z]@some\.site\.example$\N

On encountering the first \N, the expander copies subsequent characters
without interpretation until it reaches the next \N or the end of the
string.

</quote>