[Dovecot] thunderbird and subscriptions with sieve
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@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 8/31/2011 7:15 PM, Stephan Bosch wrote:
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.
That's been my experience. Sometimes a refresh will pick it up, but Thunderbird tends to be very slow about picking up new folders until you restart Thunderbird.
Note that in Dovecot v1, there's a flag that you set on the dovecot LDA to enable this behavior (lda_mailbox_autosubscribe was added in Dovecot v2):
Note the "-n" and "-s" parameters. (Which get configured in master.cf if you're using Postfix. Not sure how that gets configured on other MTAs.)
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.
Hi All,
Thanks for all the responses! While I like the idea of moving to dovecot 2.x for new features, it is not part of the ubuntu packages, so I'm going to wait. In the end, I found deliver -s in postfix master.cf did the trick. Still the problem with thunderbird not seeing the new folder until restart, but hey, mail client independence is what I'm after anyway ;)
Kris
On 8/31/11 7:32 PM, Timo Sirainen wrote:
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.
-- Mr. Kristen J. Webb Teradactyl LLC.
PHONE: 1-505-242-1091 EMAIL: kwebb@teradactyl.com VISIT: http://www.teradactyl.com
Home of the
True incremental Backup System
The only time I've seen thunderbird issue a LIST or LSUB command is on startup, or when you open the "Subscribe..." dialog. I believe with the IMAP protocol that is only way to find out about new and newly subscribed folders (I'm not an IMAP guru though...), so with thunderbird, that is by design.
-Greg
On 2011-09-01 12:22 PM, Kristen J. Webb wrote:
Hi All,
Thanks for all the responses! While I like the idea of moving to dovecot 2.x for new features, it is not part of the ubuntu packages, so I'm going to wait. In the end, I found deliver -s in postfix master.cf did the trick. Still the problem with thunderbird not seeing the new folder until restart, but hey, mail client independence is what I'm after anyway ;)
Kris
On 8/31/11 7:32 PM, Timo Sirainen wrote:
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.
Am 01.09.2011 21:22, schrieb Kristen J. Webb:
Hi All,
Thanks for all the responses! While I like the idea of moving to dovecot 2.x for new features, it is not part of the ubuntu packages,
search list archive, there are ubuntu packs dove 2.x out there in some repositories
i i.e recompile stuff from here http://xi.rename-it.nl/debian/ on lucid works like charme
so I'm going to
wait. In the end, I found deliver -s in postfix master.cf did the trick. Still the problem with thunderbird not seeing the new folder until restart, but hey, mail client independence is what I'm after anyway ;)
Kris
On 8/31/11 7:32 PM, Timo Sirainen wrote:
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.
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
participants (6)
-
Gregory Finch
-
Kristen J. Webb
-
Robert Schetterer
-
Stephan Bosch
-
Thomas Harold
-
Timo Sirainen