[exim] Expanding newlines

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Rob Morris
Date:  
À: exim-users
Sujet: [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