[exim] syntax and use of ${run}

2014-02-13 Thread Yan Seiner

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?



--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


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

2014-02-13 Thread Chris Siebenmann
| 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

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/