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

Diff of /imapfilter/response.c

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

revision 1.52 by lefcha, Sat Feb 14 23:08:31 2004 UTC revision 1.53 by lefcha, Sun Feb 15 15:31:54 2004 UTC
# Line 127  response_capability(connection_t * conn, Line 127  response_capability(connection_t * conn,
127    
128          if (opts.force_protocol == PROTOCOL_NONE) {          if (opts.force_protocol == PROTOCOL_NONE) {
129                  if (strcasestr(ibuf.data, "IMAP4rev1"))                  if (strcasestr(ibuf.data, "IMAP4rev1"))
130                          conn->prot = PROTOCOL_IMAP4REV1;                          conn->proto = PROTOCOL_IMAP4REV1;
131                  else if (strcasestr(ibuf.data, "IMAP4"))                  else if (strcasestr(ibuf.data, "IMAP4"))
132                          conn->prot = PROTOCOL_IMAP4;                          conn->proto = PROTOCOL_IMAP4;
133                  else {                  else {
134                          error("server supports neither the IMAP4rev1 nor the "                          error("server supports neither the IMAP4rev1 nor the "
135                              "IMAP4 protocol\n");                              "IMAP4 protocol\n");
136                          return -2;                          return -2;
137                  }                  }
138          } else          } else
139                  conn->prot = opts.force_protocol;                  conn->proto = opts.force_protocol;
140    
141          if (strcasestr(ibuf.data, "NAMESPACE"))          if (strcasestr(ibuf.data, "NAMESPACE"))
142                  conn->caps |= CAPABILITY_NAMESPACE;                  conn->caps |= CAPABILITY_NAMESPACE;

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26