Aki Tuomi
2017-Mar-30 06:14 UTC
Studying dovecot source code (searching for mail_deliver_hook_set)
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 KaiserAnd in particular, you want to look at src/plugins/quota/quota-maildir.c Aki
chaouche yacine
2017-Mar-30 09:35 UTC
Studying dovecot source code (searching for mail_deliver_hook_set)
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 KaiserAnd in particular, you want to look at src/plugins/quota/quota-maildir.c Aki
Aki Tuomi
2017-Mar-30 09:41 UTC
Studying dovecot source code (searching for mail_deliver_hook_set)
https://wiki2.dovecot.org/Design Aki On 30.03.2017 12:35, chaouche yacine wrote:> 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 > >
Possibly Parallel Threads
- Studying dovecot source code (searching for mail_deliver_hook_set)
- Studying dovecot source code (searching for mail_deliver_hook_set)
- Studying dovecot source code (searching for mail_deliver_hook_set)
- Studying dovecot source code (searching for mail_deliver_hook_set)
- Problem with sieve_before[solved]