[Dovecot] Deliver autocreate with auto-subscribe?
Hello,
I'm using dovecot with postfix configured for address extensions, so email to me+folder@mydomain.com me%2Bfolder@mydomain.com, automatically is handed off to dovecot deliver, which sees there is no folder called "folder" and autocreates it. This is brilliant, as it means I can give out subject orrientated email addresses, and the mail is automatically put in the right mailbox :) I love dovecot with postfix.
However, my problem is my IMAP client (roundcube and HordeIMP) does not see the newly created folder. I have to manually subscribe it in the webmail client, or I have to add the folder to the "subscriptions" file in my home dir. So my question is, can the deliver command which auto-creates this folder, also add it to the subscriptions file? It seems like it just needs another switch on the command line. http://wiki.dovecot.org/LDA
Is this currently possible, and if not, what code do I need to hack to make it work?
Thanks Paul
On Fri, 2008-08-22 at 13:25 +0100, Paul Reilly wrote:
However, my problem is my IMAP client (roundcube and HordeIMP) does not see the newly created folder. I have to manually subscribe it in the webmail client, or I have to add the folder to the "subscriptions" file in my home dir. So my question is, can the deliver command which auto-creates this folder, also add it to the subscriptions file? It seems like it just needs another switch on the command line. http://wiki.dovecot.org/LDA
I thought about making it do it by default, but then decided maybe it's not a good idea, especially for v1.1.x where it would change the existing behavior. So added -s parameter: http://hg.dovecot.org/dovecot-1.1/rev/1820f139660f
That's brilliant Timo. Thanks! I'll apply and test the patch now.
Paul
On Sat, Aug 30, 2008 at 11:34 AM, Timo Sirainen tss@iki.fi wrote:
On Fri, 2008-08-22 at 13:25 +0100, Paul Reilly wrote:
However, my problem is my IMAP client (roundcube and HordeIMP) does not see the newly created folder. I have to manually subscribe it in the webmail client, or I have to add the folder to the "subscriptions" file in my home dir. So my question is, can the deliver command which auto-creates this folder, also add it to the subscriptions file? It seems like it just needs another switch on the command line. http://wiki.dovecot.org/LDA
I thought about making it do it by default, but then decided maybe it's not a good idea, especially for v1.1.x where it would change the existing behavior. So added -s parameter: http://hg.dovecot.org/dovecot-1.1/rev/1820f139660f
Tested, and works perfectly. Newly created folders are added to the subscriptions file now, and so webmail picks up on the fact that new email is there.
Thanks Timo. That makes my email set up really perfect now. I can't speak more highly about dovecot. It really is a best-of-class IMAP server.
Paul
That's brilliant Timo. Thanks!
I'll apply and test the patch now.
Paul
On Sat, Aug 30, 2008 at 11:34 AM, Timo Sirainen tss@iki.fi wrote:
On Fri, 2008-08-22 at 13:25 +0100, Paul Reilly wrote:
However, my problem is my IMAP client (roundcube and HordeIMP) does not see the newly created folder. I have to manually subscribe it in the webmail client, or I have to add the folder to the "subscriptions" file in my home dir. So my question is, can the deliver command which auto-creates this folder, also add it to the subscriptions file? It seems like it just needs another switch on the command line. http://wiki.dovecot.org/LDA
I thought about making it do it by default, but then decided maybe it's not a good idea, especially for v1.1.x where it would change the existing behavior. So added -s parameter: http://hg.dovecot.org/dovecot-1.1/rev/1820f139660f
participants (2)
-
Paul Reilly
-
Timo Sirainen