Nigel Metheringham edited this page Nov 29, 2012 · 2 revisions

Q0502

Question

What I really need is the ability to obtain the result of a pipe command so that I can filter externally and redirect internally. Is this possible?

Answer

The result of a pipe command is not available to a filter, because Exim does not run any actual deliveries while filtering. It just sets up deliveries at this time. They all actually happen later. If you want to run pipes and examine their results, you need to set up a single delivery to a delivery agent such as procmail which provides this kind of facility. An possible alternative is to use the ${run expansion item to run an external command while filtering. In this case, you can make use of some of the results of the command.


Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.