[imapfilter-devel] Interactive features bug
Michal Kolodziejczyk
miko at wp.pl
Tue Dec 15 14:40:42 EET 2009
Julian Tibble wrote:
> Hi all,
>
> A popular way to run imapfilter is from cron. However, the interactive
> features of imapfilter are not disabled when run in this mode, which
> can rapidly lead to a machine full of hung imapfilter instances. For
> example, this happens if the certificate for a mail server changes. A
> quick google suggests that this is a very common problem.
>
> Suggested fix:
> Use the posix-function isatty() to disable all interactive features
> when stdin is not a tty, exiting with an error message instead.
I run it from init script, sometimes from commandline like:
/etc/rc.d/imapfilter start
And I do have similar problem once a year when my imapserver changes the
certificate (then imapfilter hangs taking all the cpu cycles - even
when there is just a one process).
So I would like to have the option to turn the interactive features off
within the config file itself (so I could exit cleanly and logging the
error if it was detected), no matter what isatty() returns.
Regards,
miko
More information about the Imapfilter-devel
mailing list