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 |
|
|
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 |
|
|