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

Diff of /imapfilter/response.c

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

revision 1.21 by lefcha, Sat Jul 13 22:40:07 2002 UTC revision 1.22 by lefcha, Sat Jul 13 23:03:28 2002 UTC
# Line 364  int analyze_response(char *buf) Line 364  int analyze_response(char *buf)
364          strncat(result, buf + match[1].rm_so,          strncat(result, buf + match[1].rm_so,
365                  min(match[1].rm_eo - match[1].rm_so, RESULT_BUF - 1));                  min(match[1].rm_eo - match[1].rm_so, RESULT_BUF - 1));
366    
367          if (!strcasecmp(buf + match[2].rm_so, "NO"))          if (!strncasecmp(buf + match[2].rm_so, "NO", 2))
368              r = RESPONSE_NO;              r = RESPONSE_NO;
369          else if (!strcasecmp(buf + match[2].rm_so, "BAD"))          else if (!strncasecmp(buf + match[2].rm_so, "BAD", 3))
370              r = RESPONSE_BAD;              r = RESPONSE_BAD;
371    
372          verbose("Server response: %s\n", result);          verbose("Server response: %s\n", result);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26