Re: [exim] running an external program on messages data

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jeremy Harris
日付:  
To: exim-users
題目: Re: [exim] running an external program on messages data
On 11/11/2018 17:28, Ian Zimmerman via Exim-users wrote:
> What is the recommended/canonical way to run an arbitrary external
> process on a mail that is being processed and capture the output of the
> process so it can be used for expansion?


The malware ACL condition, with your choice of scanner type "sock" or
"cmdline".


> Is there a way to get the file name(s) for the data in the queue? That
> would mostly solve my problem.


If you _really_ must go that way... build them from

$spool_directory and $message_exim_id and -H and -D.
Possibly with $queue_name.

But you're becoming fragile against changes in directory
usage (as exemplified by queue_name) and formats (cf.
spool_files_wireformat). Spoolfiles are not intended to be
a stable interface.

--
Cheers,
Jeremy