[Dovecot] Annoying "feature" in dovecot/pidgeonhole - include depth limitation

Stephan Bosch stephan at rename-it.nl
Sun Sep 11 13:01:57 EEST 2011


On 9/10/2011 4:36 AM, Mihai Moldovan wrote:
> Hi all,
>
> I'm using dovecot 2.0.14 build on Debian.
>
> The maintainers obviously patch the dovecot source so that it uses the
> pidgeonhole sieve system.
>
> Today I ran into a very annoying issue: I created several sieve scripts
> and interlinked via the include command, only to find dovecot spewing
> this error message at me:
> SWREG Newsletter: line 14: error: cannot nest includes deeper than 10
> levels.
>
> As far as I could see this limitation is hardcoded to a depth of 10 and
> can only be changed at compile time.

Yes, it is.

> Why is it in place? I understand that you CAN create loops via the
> include command and limiting the inclusion depth is a way to circumvent
> loops - but ten is a very low value and the fact that you can't change
> it via a config file or sorta is even worse.

True. This is one of those typical 'this aught to be enough for every 
one' issues.  Up until now, this was true :)

> My "fix" so far has been ignoring this, i.e. not returning false. I'm
> pretty sure that's not the best way to do it but it seems to be working
> so far.
>
> I'd really like to hear your opinion on this issue.

I've made the limits for the include extension configurable now. This 
will be included in the next release.

Regards,

Stephan.



More information about the dovecot mailing list