[Dovecot] Loadable module
Timo Sirainen
tss at iki.fi
Sat Jul 19 02:14:06 EEST 2003
On Saturday, Jul 19, 2003, at 00:40 Europe/Helsinki, Maikel Verheijen
wrote:
> I read a post about moving a .mailbixlist to a .subscriptionfile when
> a user did not have one, but did have a .mailboxlist file. Timo
> emailed a module for that purpose, so it could be done for this user.
>
> My question is:
>
> - Where and how does dovecot call this function?
<module name>_init(); is called after initializing Dovecot's core code,
but before opening any message store or creating client structure. I
think I'd have to add some hooks for store creation and client creation
so you wouldn't need kludges if you want to modify them in some way.
You'll have to enable modules of course in configuration file and place
the module to right directory.
> - Would it be easy to use a module to a) create a mailpath (can be
> done as the mailuser's id, I use one uid, and my path is all owned by
> that uid), and b) simply remove a quota file?
Yes, the modules can do whatever they want. Just use mkdir() and
unlink().
More information about the dovecot
mailing list