Re: [exim] How to trap "command timed out"? (avoid 451 rejec…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Andrew C Aitchison
Data:  
Para: exim-users
Assunto: Re: [exim] How to trap "command timed out"? (avoid 451 reject)
On Thu, 14 Mar 2019, Aki Kyo via Exim-users wrote:

> Hi,
>
> I'm running a command on a decoded MIME part:
>
> ${run{/path/to/command $mime_decoded_filename}}
>
> In some very rare cases, I get "command timed out" and the message is
> rejected with 451 code
>
> Aside from debugging why it timed out, most important, how can I catch
> this condition so the timed out command doesn't cause a 4xx temporary
> rejection? My command not so important so I want to skip this command
> and accept the message


If no one comes up with a way to do it in exim,
you can write a wrapper that calls "command" and returns after a set time
even if command has not completed.
I have never written such a wrapper and don't know which scripts
or other languages would be good for such a task.

-- 
Andrew C. Aitchison                    Cambridge, UK
             andrew@???