On Mon, 6 Mar 2000, Philip Hazel wrote:
> On Mon, 6 Mar 2000, Juergen Hoffmann wrote:
>
> > -> senders=" ! ^autoreply@ : ! ^vacation@ : ! ${local_part} : ! ^\\$"
>
> Try
>
> > -> senders=" ! ^autoreply@ : ! ^vacation@ : ! ${local_part} : ! ^\\\\$"
>
> or
>
> > -> senders= ! ^autoreply@ : ! ^vacation@ : ! ${local_part} : ! ^\\$
>
> [The "senders" option is expanded.]
>
> or even
>
> > -> senders= ! ^autoreply@ : ! ^vacation@ : ! ${local_part} : !
Thinking about this, I have realized that I gave the wrong answer. Or
possibly the right answer for the wrong reason. The poster was using
Exim 3.12. There was a bug in that version of Exim, which was fixed in
3.13. The bug was as follows:
-----------------------------------------------------------------------
2. The "senders" setting on directors and routers was getting string expanded
twice, by mistake. This mattered if after the first expansion there was a \ or
a $ in the string (e.g. in a regex).
-----------------------------------------------------------------------
My answer was an instant reaction to seeing the error message (which
complained about a $ that could not be understood by the string expander).
Inserting two more \\ would work in 3.12, but not in 3.13, where the
original line is in fact correct. Therefore, the best approach for 3.12
would be my final solution, which avoids using any use of backslashes.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.