Re: [exim] syntax and use of ${run}

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Chris Siebenmann
Data:  
Para: Yan Seiner
CC: exim-users
Assunto: Re: [exim] syntax and use of ${run}
| Where can I find some documentation on the syntax of ${run ...}?
|
| I can't find it in the exim spec.
|
| Then again, maybe there's a better way to do this.
|
| I am trying to include the contents of a file in a header so I've been
| trying:
|
| headers_add = "My-Header: ${run {/bin/cat /my/file}{$value}{error}}"
|
| All I get is is either 'error' or a blank, depending on how I configure it.
|
| What's the best way to include a message from a file in the headers?


You might want ${readfile}, which does this directly.
${readfile} and ${run} are both documented in Chapter 11 of the
documentation, 'String Expansions', specifically (currently)
section 5:

    http://www.exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html


    - cks