41 |
*/ |
*/ |
42 |
int server_response(int *sock, unsigned int tag) |
int server_response(int *sock, unsigned int tag) |
43 |
{ |
{ |
44 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
45 |
|
|
46 |
reset_vbuf(); |
reset_vbuf(); |
47 |
|
|
71 |
*/ |
*/ |
72 |
int greeting_response(int *sock) |
int greeting_response(int *sock) |
73 |
{ |
{ |
74 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
75 |
|
|
76 |
receive_response(sock, buf); |
receive_response(sock, buf); |
77 |
bye_response(buf); |
bye_response(buf); |
88 |
*/ |
*/ |
89 |
int logout_response(int *sock, unsigned int tag) |
int logout_response(int *sock, unsigned int tag) |
90 |
{ |
{ |
91 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
92 |
|
|
93 |
reset_vbuf(); |
reset_vbuf(); |
94 |
|
|
107 |
*/ |
*/ |
108 |
int capability_response(int *sock, unsigned int tag) |
int capability_response(int *sock, unsigned int tag) |
109 |
{ |
{ |
110 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
111 |
|
|
112 |
reset_vbuf(); |
reset_vbuf(); |
113 |
|
|
134 |
*/ |
*/ |
135 |
int namespace_response(int *sock, unsigned int tag, namesp_t * nsp) |
int namespace_response(int *sock, unsigned int tag, namesp_t * nsp) |
136 |
{ |
{ |
137 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
138 |
char *c, *d; |
char *c, *d; |
139 |
|
|
140 |
reset_vbuf(); |
reset_vbuf(); |
169 |
int status_response(int *sock, unsigned int tag, char *mbox) |
int status_response(int *sock, unsigned int tag, char *mbox) |
170 |
{ |
{ |
171 |
int r; |
int r; |
172 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
173 |
unsigned int exist, recent, unseen; |
unsigned int exist, recent, unseen; |
174 |
char *c; |
char *c; |
175 |
|
|
217 |
*/ |
*/ |
218 |
int select_response(int *sock, unsigned int tag) |
int select_response(int *sock, unsigned int tag) |
219 |
{ |
{ |
220 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
221 |
|
|
222 |
reset_vbuf(); |
reset_vbuf(); |
223 |
|
|
240 |
*/ |
*/ |
241 |
int search_response(int *sock, unsigned int tag, char **mesgs) |
int search_response(int *sock, unsigned int tag, char **mesgs) |
242 |
{ |
{ |
243 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
244 |
char *c, *m; |
char *c, *m; |
245 |
unsigned int blen; |
unsigned int blen; |
246 |
|
|
274 |
*/ |
*/ |
275 |
int fetch_response(int *sock, unsigned int tag, int reset, char *fetch) |
int fetch_response(int *sock, unsigned int tag, int reset, char *fetch) |
276 |
{ |
{ |
277 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
278 |
unsigned int i; |
unsigned int i; |
279 |
static unsigned int s; |
static unsigned int s; |
280 |
char *b; |
char *b; |
324 |
*/ |
*/ |
325 |
int fetchsize_response(int *sock, unsigned int *size, unsigned int tag) |
int fetchsize_response(int *sock, unsigned int *size, unsigned int tag) |
326 |
{ |
{ |
327 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
328 |
char *c; |
char *c; |
329 |
|
|
330 |
*size = 0; |
*size = 0; |
352 |
int append_response(int *sock, unsigned int tag) |
int append_response(int *sock, unsigned int tag) |
353 |
{ |
{ |
354 |
int r = RESPONSE_OK; |
int r = RESPONSE_OK; |
355 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
356 |
|
|
357 |
reset_vbuf(); |
reset_vbuf(); |
358 |
|
|
377 |
int copy_response(int *sock, unsigned int tag) |
int copy_response(int *sock, unsigned int tag) |
378 |
{ |
{ |
379 |
int r = RESPONSE_OK; |
int r = RESPONSE_OK; |
380 |
char buf[RESPONSE_BUF]; |
char buf[RESPONSE_BUF + 1]; |
381 |
|
|
382 |
reset_vbuf(); |
reset_vbuf(); |
383 |
|
|