[Pigeonhole Sieve interpreter] :create argument and lda_mailbox_autosubscribe setting

Stephan Bosch stephan at rename-it.nl
Tue Oct 14 01:20:40 UTC 2014


On 10/8/2014 2:13 PM, Vivien Lacourba wrote:
> Hi,
>
> I am using dovecot and dovecot-sieve packages from Debian Wheezy
> (2.1.7-7+deb7u1).
>
> I noticed that while using ":create" (from the mailbox extension) in my
> Sieve filter and "lda_mailbox_autosubscribe = yes" in Dovecot's LDA
> config it automatically subscribes to the destination mailbox even if
> that mailbox already existed.
>
> Reading Dovecot's documentation and the mailbox extension RFC it seems
> subscription should happen only if it is a newly created mailbox and
> should not happen if the mailbox already existed.
>
> http://tools.ietf.org/html/rfc5490#section-3.2
> [[
> 3.2. ":create" Argument to "fileinto" Command
> (...)
> If the mailbox already exists, this argument is ignored.
> (...)
> ]]
>
> /etc/dovecot/conf.d/15-lda.conf
> [[
> # Should automatically created mailboxes be also automatically
> subscribed?
> lda_mailbox_autosubscribe = yes
> ]]
>
> Also I noticed that if I don't use ":create" in my filters and instead
> set "lda_mailbox_autocreate = yes" in Dovecot's LDA config, then this
> time the behavior looks correct as the automatic subscription will only
> happen for a newly created mailbox.

You are right. This one should fix it:

http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/a0a5f61eea69

Regards,

Stephan.


More information about the dovecot mailing list