/[imapfilter]/imapfilter/request.c
ViewVC logotype

Diff of /imapfilter/request.c

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

revision 1.58 by lefcha, Fri Feb 13 12:17:16 2004 UTC revision 1.59 by lefcha, Fri Feb 13 13:18:37 2004 UTC
# Line 12  extern options_t opts; Line 12  extern options_t opts;
12  int  int
13  test(connection_t * conn)  test(connection_t * conn)
14  {  {
15    
16          return response_generic(conn, imap_noop(conn));          return response_generic(conn, imap_noop(conn));
17  }  }
18    
# Line 22  test(connection_t * conn) Line 23  test(connection_t * conn)
23  int  int
24  check_capabilities(connection_t * conn)  check_capabilities(connection_t * conn)
25  {  {
26    
27          conn->caps = CAPS_NONE;          conn->caps = CAPS_NONE;
28    
29          return response_capability(conn, imap_capability(conn));          return response_capability(conn, imap_capability(conn));
# Line 34  check_capabilities(connection_t * conn) Line 36  check_capabilities(connection_t * conn)
36  int  int
37  check_namespace(connection_t * conn)  check_namespace(connection_t * conn)
38  {  {
39    
40          conn->ns.prefix[0] = conn->ns.delim = '\0';          conn->ns.prefix[0] = conn->ns.delim = '\0';
41    
42          if (!opts.namespace || !(conn->caps & CAPS_NAMESPACE))          if (!opts.namespace || !(conn->caps & CAPS_NAMESPACE))
# Line 66  negotiate_tls(connection_t * conn) Line 69  negotiate_tls(connection_t * conn)
69  int  int
70  login(connection_t * conn, char *user, char *pass)  login(connection_t * conn, char *user, char *pass)
71  {  {
72    
73          return response_generic(conn, imap_login(conn, user, pass));          return response_generic(conn, imap_login(conn, user, pass));
74  }  }
75    
# Line 77  login(connection_t * conn, char *user, c Line 81  login(connection_t * conn, char *user, c
81  int  int
82  check_mailbox(connection_t * conn, char *mbox)  check_mailbox(connection_t * conn, char *mbox)
83  {  {
84    
85          return response_generic(conn, imap_status(conn, mbox, "MESSAGES"));          return response_generic(conn, imap_status(conn, mbox, "MESSAGES"));
86  }  }
87    
# Line 108  select_mailbox(connection_t * conn, char Line 113  select_mailbox(connection_t * conn, char
113  int  int
114  mailbox_status(connection_t * conn, char *mbox)  mailbox_status(connection_t * conn, char *mbox)
115  {  {
116    
117          return response_status(conn, imap_status(conn,          return response_status(conn, imap_status(conn,
118                  apply_namespace(mbox, conn->ns.prefix, conn->ns.delim),                  apply_namespace(mbox, conn->ns.prefix, conn->ns.delim),
119                  "MESSAGES RECENT UNSEEN"), mbox);                  "MESSAGES RECENT UNSEEN"), mbox);
# Line 120  mailbox_status(connection_t * conn, char Line 126  mailbox_status(connection_t * conn, char
126  int  int
127  close_mailbox(connection_t * conn)  close_mailbox(connection_t * conn)
128  {  {
129    
130          return response_generic(conn, imap_close(conn));          return response_generic(conn, imap_close(conn));
131  }  }
132    
# Line 130  close_mailbox(connection_t * conn) Line 137  close_mailbox(connection_t * conn)
137  int  int
138  logout(connection_t * conn)  logout(connection_t * conn)
139  {  {
140    
141          return response_logout(conn, imap_logout(conn));          return response_logout(conn, imap_logout(conn));
142  }  }

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26