[exim] Best way to split multiline string

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Ian Z via Exim-users
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Best way to split multiline string
I need to inspect the output from en external program (run via the
${run} expansion). The program outputs multiple lines, only the first
is relevant to me. What is the least painful way to extract it? I mean
the least number of backslashes and curlies.

In the past when I thought I needed this, it turned out the program
had a daemon mode replying on a socket, so I could use the readsocket
expansion which has a built-in separator option. Unfortunately, there
is no daemon mode now, and the run expansion has no such option
(hint hint feature request :)

--
Ian

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/