Discussion:
[Pigeonhole Sieve interpreter] :create argument and lda_mailbox_autosubscribe setting
Vivien Lacourba
2014-10-08 12:13:43 UTC
Permalink
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.

Thanks,
Vivien
--
Vivien Lacourba World Wide Web Consortium
Systems & Network Engineer http://www.w3.org
vivien at w3.org Tel: +33.4.92.38.78.89
http://www.w3.org/People/Vivien Fax: +33.4.92.38.78.22
--
Vivien Lacourba World Wide Web Consortium
Systems & Network Engineer http://www.w3.org
vivien at w3.org Tel: +33.4.92.38.78.89
http://www.w3.org/People/Vivien Fax: +33.4.92.38.78.22
Stephan Bosch
2014-10-14 01:20:40 UTC
Permalink
Post by Vivien Lacourba
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.

Loading...