[Dovecot] Auto create folder(s)
Hi All,
does anyone know of a way to automatically create user folder(s)? Like creating a Spam folder on login if not already there. I've googled a bit but couldn't find anything relevant.
Any advice appreciated
R /Lars
On Wed, 2007-09-26 at 18:10 +0200, Lars Stavholm wrote:
does anyone know of a way to automatically create user folder(s)?
You can run a script at login by making the imap executable a script that does something and then executes the imap executable. Search the list archives, should turn up something.
johannes
On Wed, 2007-09-26 at 18:10 +0200, Lars Stavholm wrote:
Hi All,
does anyone know of a way to automatically create user folder(s)? Like creating a Spam folder on login if not already there. I've googled a bit but couldn't find anything relevant.
Since several people have asked already, I implemented a simple plugin for it. Works with both imap and deliver:
http://dovecot.org/patches/1.0/autocreate-plugin.c
A bit different for v1.1 (if you haven't defined namespaces, it doesn't work unless you use today's hg version):
participants (3)
-
Johannes Berg
-
Lars Stavholm
-
Timo Sirainen