[imapfilter-devel] Interactive features bug
Lefteris Chatzimparmpas
lefcha at hellug.gr
Tue Dec 15 23:58:29 EET 2009
Hello,
That's interesting, I will look into the different options to overcome
these problems.
Good thing you reported them, thanks.
On Tue, Dec 15, 2009 at 01:40:42PM +0100, Michal Kolodziejczyk wrote:
> 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
> _______________________________________________
> Imapfilter-devel mailing list
> Imapfilter-devel at lists.hellug.gr
> http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
More information about the Imapfilter-devel
mailing list