Mercurial > dovecot > core-2.2
diff src/pop3/main.c @ 1646:a7c742b940e5 HEAD
Added pop3 hooks
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 26 Jul 2003 21:29:02 +0300 |
parents | 124a42f0be3a |
children | 193daadc3924 |
line wrap: on
line diff
--- a/src/pop3/main.c Sat Jul 26 21:24:00 2003 +0300 +++ b/src/pop3/main.c Sat Jul 26 21:29:02 2003 +0300 @@ -18,6 +18,9 @@ struct ioloop *ioloop; +void (*hook_mail_storage_created)(struct mail_storage **storage) = NULL; +void (*hook_client_created)(struct client **client) = NULL; + static struct module *modules; static char log_prefix[128]; /* syslog() needs this to be permanent */ @@ -104,6 +107,9 @@ } } + if (hook_mail_storage_created != NULL) + hook_mail_storage_created(&storage); + return client_create(0, 1, storage) != NULL; }