Re: [Exim] Bug/Improvement in Readfile - Exim 4

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Marc Perkel
Data:  
Para: exim-users
Assunto: Re: [Exim] Bug/Improvement in Readfile - Exim 4
I think you're missing my point. In code like this:

{${sg\
      {${readfile{/etc/exim/x}{|}}}\


Is not the same as:

{${sg\
      {${readfile{/etc/exim/x}{|}}\
     }\


because the second version reads the file and then adds the white space
to the end of the read file. It's like saying:

readfile(/file) + "      "




Philip Hazel wrote:

>On Mon, 23 Dec 2002, Marc Perkel wrote:
>
>
>
>>Perhaps if there is a "\" at the end of a line that the white space at
>>the beginning of the next line should be trimmed?????
>>
>>
>
>That already happens in Exim's configuration file. However, there is no
>such processing of files read by ${readfile because Exim has absolutely
>no idea what such data is being used for...
>
>Do you know about the (?x) option for regular expressions? It causes
>literal whitespace to be ignored. Perhaps it could be useful here.
>
>--
>Philip Hazel            University of Cambridge Computing Service,
>ph10@???      Cambridge, England. Phone: +44 1223 334714.

>
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>
>
>