[Dovecot] Loadable module
Hi List!
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?
- 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?
Thank you for your time,
Maikel Verheijen.
Ps: the email I am referring to has: Subject: Re: [Dovecot] 0.99.10-rc3 Message-Id: 1056538261.8144.38.camel@hurina Date: 25 Jun 2003 13:51:01 +0300
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().
participants (2)
-
Maikel Verheijen
-
Timo Sirainen