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

Diff of /imapfilter/imapfilter.h

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

revision 1.33 by lefcha, Mon Jul 8 17:59:58 2002 UTC revision 1.34 by lefcha, Sat Jul 13 14:11:08 2002 UTC
# Line 35  Line 35 
35  #define OPTION_DETAILS_CLEAR            0xf8  #define OPTION_DETAILS_CLEAR            0xf8
36  #define OPTION_HEADERS                  0x08  #define OPTION_HEADERS                  0x08
37  #define OPTION_NAMESPACE                0x10  #define OPTION_NAMESPACE                0x10
38  #define OPTION_PASSWORD_EDITOR          0x20  #define OPTION_EXPUNGE                  0x20
39  #define OPTION_DAEMON_MODE              0x40  #define OPTION_PASSWORD_EDITOR          0x40
40    #define OPTION_DAEMON_MODE              0x80
41    
42  /* Other flags. */  /* Other flags. */
43  #define FLAG_TTY_MODIFIED               0x01  #define FLAG_TTY_MODIFIED               0x01
# Line 149  int imap_store(int *sock, char *mesg, ch Line 150  int imap_store(int *sock, char *mesg, ch
150  int imap_copy(int *sock, char *mesg, char *mbox);  int imap_copy(int *sock, char *mesg, char *mbox);
151  int imap_append(int *sock, char *mbox, unsigned int size);  int imap_append(int *sock, char *mbox, unsigned int size);
152  int imap_close(int *sock);  int imap_close(int *sock);
153  /* int imap_expunge(int *sock); */  int imap_expunge(int *sock);
154    
155  /*      lock.c          */  /*      lock.c          */
156  void lockfile_create(void);  void lockfile_create(void);
# Line 181  void *smalloc(size_t size); Line 182  void *smalloc(size_t size);
182  void *srealloc(void *ptr, size_t size);  void *srealloc(void *ptr, size_t size);
183  void sfree(void *ptr);  void sfree(void *ptr);
184  char *sstrdup(const char *s);  char *sstrdup(const char *s);
185  void secmem_append(secmem_t *node);  void secmem_append(secmem_t * node);
186  secmem_t *secmem_find(void *ptr);  secmem_t *secmem_find(void *ptr);
187  void secmem_remove(secmem_t *node);  void secmem_remove(secmem_t * node);
188  void secmem_clear(void);  void secmem_clear(void);
189  void secmem_lock(void);  void secmem_lock(void);
190    
# Line 197  char *xstrncpy(char *dest, const char *s Line 198  char *xstrncpy(char *dest, const char *s
198  /*      passwd.c        */  /*      passwd.c        */
199  void get_password(char *passwd, size_t pwlen);  void get_password(char *passwd, size_t pwlen);
200  #ifdef ENCRYPTED_PASSWORDS  #ifdef ENCRYPTED_PASSWORDS
201  int encrypt_passwords(FILE *fd, account_t *accts[]);  int encrypt_passwords(FILE * fd, account_t * accts[]);
202  int decrypt_passwords(unsigned char **buf, FILE *fd);  int decrypt_passwords(unsigned char **buf, FILE * fd);
203  void password_editor(void);  void password_editor(void);
204  #endif  #endif
205    
206  /*      request.c       */  /*      request.c       */
207  int test(int *sock);  int test(int *sock);
208  int check_capabilities(int *sock);  int check_capabilities(int *sock);
209  int check_namespace(int *sock, namesp_t *nsp);  int check_namespace(int *sock, namesp_t * nsp);
210  int login(int *sock, char *user, char *pass);  int login(int *sock, char *user, char *pass);
211  int check_mailbox(int *sock, char *mbox, namesp_t *nsp);  int check_mailbox(int *sock, char *mbox, namesp_t * nsp);
212  int select_mailbox(int *sock, char *mbox, namesp_t *nsp);  int select_mailbox(int *sock, char *mbox, namesp_t * nsp);
213  int mailbox_status(int *sock, char *mbox, namesp_t *nsp);  int mailbox_status(int *sock, char *mbox, namesp_t * nsp);
214  int close_mailbox(int *sock);  int close_mailbox(int *sock);
215  int logout(int *sock);  int logout(int *sock);
216    
# Line 221  void queue_fifo(mask_t ** mfifo, mask_t Line 222  void queue_fifo(mask_t ** mfifo, mask_t
222  mask_t *dequeue_fifo(mask_t ** mfifo);  mask_t *dequeue_fifo(mask_t ** mfifo);
223    
224  char *generate_filter_and(mask_t * mask, unsigned int masknum,  char *generate_filter_and(mask_t * mask, unsigned int masknum,
225                            unsigned int masklen);                             unsigned int masklen);
226  char *generate_filter_or(mask_t * mask, unsigned int masknum,  char *generate_filter_or(mask_t * mask, unsigned int masknum,
227                           unsigned int masklen);                            unsigned int masklen);
228    
229  int apply_action(char *mesgs, unsigned int *type, account_t *raccount,  int apply_action(char *mesgs, unsigned int *type, account_t * raccount,
230                   char *destmbox, char *args);                    char *destmbox, char *args);
231  int action_delete(char *mesgs, char *args);  int action_delete(char *mesgs, char *args);
232  int action_copy(char *mesgs, char *destmbox, char *args);  int action_copy(char *mesgs, char *destmbox, char *args);
233  int action_move(char *mesgs, char *destmbox, char *args);  int action_move(char *mesgs, char *destmbox, char *args);
234  int action_rcopy(char *mesgs, account_t *destacc, char *destmbox, char *args);  int action_rcopy(char *mesgs, account_t * destacc, char *destmbox, char *args);
235  int action_rmove(char *mesgs, account_t *destacc, char *destmbox, char *args);  int action_rmove(char *mesgs, account_t * destacc, char *destmbox, char *args);
236  int action_list(char *mesgs, char *args);  int action_list(char *mesgs, char *args);
237    
238  unsigned int count_messages(char *mesgs);  unsigned int count_messages(char *mesgs);
# Line 243  void receive_response(int *sock, char *b Line 244  void receive_response(int *sock, char *b
244  int server_response(int *sock, unsigned int tag);  int server_response(int *sock, unsigned int tag);
245  int greeting_response(int *sock);  int greeting_response(int *sock);
246  int capability_response(int *sock, unsigned int tag);  int capability_response(int *sock, unsigned int tag);
247  int namespace_response(int *sock, unsigned int tag, namesp_t *nsp);  int namespace_response(int *sock, unsigned int tag, namesp_t * nsp);
248  int status_response(int *sock, unsigned int tag, char *mbox);  int status_response(int *sock, unsigned int tag, char *mbox);
249  int select_response(int *sock, unsigned int tag);  int select_response(int *sock, unsigned int tag);
250  int search_response(int *sock, unsigned int tag, char **mesgs);  int search_response(int *sock, unsigned int tag, char **mesgs);
# Line 258  void check_vbuf(size_t n); Line 259  void check_vbuf(size_t n);
259    
260  /*      socket.c        */  /*      socket.c        */
261  int init_connection(int *sock, char *serv, unsigned short int port,  int init_connection(int *sock, char *serv, unsigned short int port,
262                      unsigned int protocol);                       unsigned int protocol);
263  int ssl_init(int *sock, unsigned int protocol);  int ssl_init(int *sock, unsigned int protocol);
264  int close_connection(int *sock);  int close_connection(int *sock);
265  int socket_read(int *sock, char *buf);  int socket_read(int *sock, char *buf);

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26