Studying dovecot source code (searching for mail_deliver_hook_set)

chaouche yacine yacinechaouche at yahoo.com
Thu Mar 30 12:35:54 EEST 2017


Thanks ! I don't know if there's documentation about dovecot's design as a whole, not the details of the plugin itself, to get the big picture ? I assume the plugins are loaded in a loop at dovecot startup, or at login, or when mail is delivered via lda/lmtp ? in the particular case of the quota plugin I assume the quota functions are called from  LMTPD (since this is how I configured postfix to talk to dovecot) ? should I look in LMTPD's source code to find the function that calls the plugin ? 

  -- Yassine. 

    On Thursday, March 30, 2017 7:15 AM, Aki Tuomi <aki.tuomi at dovecot.fi> wrote:
 

 

On 29.03.2017 13:44, Steffen Kaiser wrote:
> On Tue, 28 Mar 2017, chaouche yacine wrote:
>
> > I would like to study how dovecot manages quota, especially how it
> deals with the maildirsize file if one chooses to implement quota
> according to the maildir++ specification.
>
> Quota is managed by the plugin, which hooks into some events. Check out
>
> src/plugins/quota
>
> -- Steffen Kaiser

And in particular, you want to look at src/plugins/quota/quota-maildir.c

Aki

   


More information about the dovecot mailing list