src/mail/ngx_mail_imap_module.h - nginx-1.7.10

Data types defined

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_MAIL_IMAP_MODULE_H_INCLUDED_
  6. #define _NGX_MAIL_IMAP_MODULE_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>
  9. #include <ngx_mail.h>


  10. typedef struct {
  11.     size_t       client_buffer_size;

  12.     ngx_str_t    capability;
  13.     ngx_str_t    starttls_capability;
  14.     ngx_str_t    starttls_only_capability;

  15.     ngx_uint_t   auth_methods;

  16.     ngx_array_t  capabilities;
  17. } ngx_mail_imap_srv_conf_t;


  18. void ngx_mail_imap_init_session(ngx_mail_session_t *s, ngx_connection_t *c);
  19. void ngx_mail_imap_init_protocol(ngx_event_t *rev);
  20. void ngx_mail_imap_auth_state(ngx_event_t *rev);
  21. ngx_int_t ngx_mail_imap_parse_command(ngx_mail_session_t *s);


  22. extern ngx_module_t  ngx_mail_imap_module;


  23. #endif /* _NGX_MAIL_IMAP_MODULE_H_INCLUDED_ */