/[imapfilter]/imapfilter/imapfilter.h
ViewVC logotype

Diff of /imapfilter/imapfilter.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.60 by lefcha, Mon May 26 08:27:10 2003 UTC revision 1.61 by lefcha, Sat Jul 26 19:42:14 2003 UTC
# Line 72  Line 72 
72  /* Capabilities of mail server. */  /* Capabilities of mail server. */
73  #define CAPABILITY_NONE                 0x00  #define CAPABILITY_NONE                 0x00
74  #define CAPABILITY_NAMESPACE            0x01  #define CAPABILITY_NAMESPACE            0x01
75    #define CAPABILITY_AUTH_CRAM_MD5        0x02
76    
77  /* Flags for logger. */  /* Flags for logger. */
78  #define LOG_PREAMBLE                    0  #define LOG_PREAMBLE                    0
# Line 108  Line 109 
109  #define RESPONSE_READONLY               5  #define RESPONSE_READONLY               5
110  #define RESPONSE_TRYCREATE              6  #define RESPONSE_TRYCREATE              6
111    
112  /* Size virtual buffer. */  /* Size of input buffer. */
113  #define VIRTUAL_BUF                     4096  #define INPUT_BUF                       4096
114    
115  /* Authentication mechanisms string. */  /* Authentication mechanisms string. */
116  #define AUTH_MECH_LEN                   512  #define AUTH_MECH_LEN                   512
# Line 151  typedef struct namesp { Line 152  typedef struct namesp {
152  } namesp_t;  } namesp_t;
153    
154    
155    /*      auth.c          */
156    int imf_cram_md5(int *sock, char *user, char *pass);
157    
158  /*      file.c          */  /*      file.c          */
159  int read_config(char *cfg);  int read_config(char *cfg);
160  int parse_config(FILE * fd);  int parse_config(FILE * fd);
# Line 187  void version(void); Line 191  void version(void);
191    
192  /*      imap.c          */  /*      imap.c          */
193  unsigned int send_command(int *sock, char *cmd);  unsigned int send_command(int *sock, char *cmd);
194    void send_command_cont(int *sock, char *cmd);
195    
196  #ifdef DEBUG  #ifdef DEBUG
197  int imap_noop(int *sock);  int imap_noop(int *sock);
# Line 195  int imap_noop(int *sock); Line 200  int imap_noop(int *sock);
200  int imap_capability(int *sock);  int imap_capability(int *sock);
201  int imap_namespace(int *sock);  int imap_namespace(int *sock);
202  int imap_logout(int *sock);  int imap_logout(int *sock);
203  int imap_authenticate(int *sock, char *auth);  int imap_authenticate(int *sock, char *auth, int cont);
204  int imap_login(int *sock, char *user, char *pass);  int imap_login(int *sock, char *user, char *pass);
205    
206  /* int imap_list(int *sock, char *refer, char *mbox); */  /* int imap_list(int *sock, char *refer, char *mbox); */
# Line 302  void current_date(char *destmbox); Line 307  void current_date(char *destmbox);
307  void message_date(char *mesg, char *destmbox);  void message_date(char *mesg, char *destmbox);
308  void default_variables(char *mbox, char *destmbox);  void default_variables(char *mbox, char *destmbox);
309    
   
310  /*      response.c      */  /*      response.c      */
311  void receive_response(int *sock, char *buf);  void receive_response(int *sock, char *buf);
312  int server_response(int *sock, unsigned int tag);  int server_response(int *sock, unsigned int tag);
# Line 310  void bye_response(char *buf); Line 314  void bye_response(char *buf);
314  int greeting_response(int *sock);  int greeting_response(int *sock);
315  int logout_response(int *sock, unsigned int tag);  int logout_response(int *sock, unsigned int tag);
316  int capability_response(int *sock, unsigned int tag);  int capability_response(int *sock, unsigned int tag);
317  void auth_mechanisms(void);  int authenticate_response(int *sock, unsigned int tag, unsigned char **cont);
318  int namespace_response(int *sock, unsigned int tag, namesp_t * nsp);  int namespace_response(int *sock, unsigned int tag, namesp_t * nsp);
319  int status_response(int *sock, unsigned int tag, char *mbox);  int status_response(int *sock, unsigned int tag, char *mbox);
320  int select_response(int *sock, unsigned int tag);  int select_response(int *sock, unsigned int tag);
# Line 320  int fetchsize_response(int *sock, unsign Line 324  int fetchsize_response(int *sock, unsign
324  int append_response(int *sock, unsigned int tag);  int append_response(int *sock, unsigned int tag);
325  int copy_response(int *sock, unsigned int tag);  int copy_response(int *sock, unsigned int tag);
326  int analyze_response(int *sock, char *buf);  int analyze_response(int *sock, char *buf);
327  void init_vbuf(void);  void init_ibuf(void);
328  void reset_vbuf(void);  void reset_ibuf(void);
329  void check_vbuf(size_t n);  void check_ibuf(void);
330    
331  /*      socket.c        */  /*      socket.c        */
332  int init_connection(int *sock, char *serv, unsigned short int port, unsigned int protocol);  int init_connection(int *sock, char *serv, unsigned short int port, unsigned int protocol);

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26