[exim] Expanding newlines

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Rob Morris
Datum:  
To: exim-users
Betreff: [exim] Expanding newlines
All, I'm trying to get an exim string expansion to take a literal string
(eg from a file lookup) like this:

    "This is a first line\nThis is a second"


and turn it into

    "This is a first line
    This is a second"


Seems the correct thing is to do:

    "${sg {...value...}{\N\\n\N}{\n}}"


But it doesn't work.

Any ideas on how I can get this to work correctly?

-Rob

PS: in case context matters, the full line is in a transport, and is:

    text = "${sg 
{${lookup{$local_part}lsearch{/var/mail/sites/${domain}/.vacations}}}{\N\\n\N}{\n}}"


--
Robert Morris <mailto:rob@irongaze.com>
Irongaze Consulting LLC <http://irongaze.com>
(415) 867-7258