Hi Timo,
When you have time to create the hooks to the various locations within dovecot, I am willing to try to make a module to support Maildir quota's. Would that be possible with the hooks, and can that be done using a plugin as well?
Kind regards,
Maikel Verheijen.
> -----Original Message-----
> From: Timo Sirainen [mailto:tss@iki.fi]
> Sent: Saturday, July 19, 2003 12:14 AM
> To: Maikel Verheijen
> Cc: 'dovecot@procontrol.fi'
> Subject: Re: [Dovecot] Loadable module
>
>
> 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().
>