Hi All, I'm a newbie trying to move mail out of my ISP onto a ubuntu (lucid) dovecot 1.2.9 server. Is there any way to automatically add folders created by sieve (GNU Mailutils 2.1) to the subscriptions file for a user? I'm currently testing spam, and if sieve created the folder with the first message, the thunderbird user does not see the new folder. Even more interesting, if the user then tries to create the Spam directory it thunderbird seems to quietly ignore the request and the user still cannot see the folder, but I digress... I can manually subscribe with thunderbird, but this won't scale for more complex sieve later by making the user responsible for finding everything. I can turn off subscription view in advanced settings on thunderbird, but we are trying to wean ourselves of of individual mail clients and I don't want to have to test this everywhere. Many thanks in advance! Kris -- Mr. Kristen J. Webb Teradactyl LLC. PHONE: 1-505-242-1091 EMAIL: kwebb at teradactyl.com VISIT: http://www.teradactyl.com Home of the True incremental Backup System
On 8/31/2011 10:48 PM, Kristen J. Webb wrote:> Hi All, > I'm a newbie trying to move mail out of my ISP onto a ubuntu (lucid) > dovecot 1.2.9 server. > > Is there any way to automatically add folders created by sieve > (GNU Mailutils 2.1) to the subscriptions file for a user? > > I'm currently testing spam, and if sieve created the folder with the > first > message, the thunderbird user does not see the new folder. > Even more interesting, if the user then tries to create the Spam > directory > it thunderbird seems to quietly ignore the request and the user still > cannot see the folder, but I digress... > > I can manually subscribe with thunderbird, but this won't scale for more > complex sieve later by making the user responsible for finding > everything. > > I can turn off subscription view in advanced settings on thunderbird, > but we are trying to wean ourselves of of individual mail clients > and I don't want to have to test this everywhere. > > Many thanks in advance!If you set lda_mailbox_autosubscribe to yes, it will subscribe folders created by Sieve automatically. However, afaik Thunderbird will not notice the subscription at first. You need to reconnect for that to be noticed. Regards, Stephan.
On 31.8.2011, at 23.48, Kristen J. Webb wrote:> Is there any way to automatically add folders created by sieve > (GNU Mailutils 2.1) to the subscriptions file for a user?You mean you're using Mailutils Sieve, not Dovecot Sieve? The only reasonable solution I can think of is: Mailutils Sieve would have to subscribe to newly created folders itself, maybe by patching it or if it supports running some script then doing it that way. With Dovecot v2.0 it could run "doveadm mailbox subscribe $folder", but with v1.2 you'd have to write your own script. Any other solution would basically require always subscribing to all folders, which kind of defeats their whole purpose.