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

Diff of /imapfilter/response.c

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

revision 1.10 by lefcha, Wed Oct 17 14:06:20 2001 UTC revision 1.11 by lefcha, Thu Nov 1 16:36:00 2001 UTC
# Line 23  int receive_response(char *buf) Line 23  int receive_response(char *buf)
23      socket_read(buf);      socket_read(buf);
24    
25  #ifdef DEBUG  #ifdef DEBUG
26              printf("\n%s\n", buf);      printf("\n%s\n", buf);
27  #endif  #endif
28        
29      return analyze_response(buf);      return analyze_response(buf);
30  }  }
31    
# Line 154  int search_response(unsigned int tag, ch Line 154  int search_response(unsigned int tag, ch
154    
155      if ((c = strcasestr(buf, "SEARCH "))) {      if ((c = strcasestr(buf, "SEARCH "))) {
156          c += 7;          c += 7;
157          while (mesgs - m < 512 && (isdigit(*c) || *c == ' '))          while (m - mesgs < SEARCH_MESSAGES_BUF && (isdigit(*c) || *c == ' '))
158              *(m++) = *(c++);              *(m++) = *(c++);
159          *m = 0;          *m = 0;
160      }      }
   
161      return r;      return r;
162  }  }
163    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26