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

Diff of /imapfilter/response.c

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

revision 1.23.2.8 by lefcha, Sat Mar 8 01:37:15 2003 UTC revision 1.23.2.9 by lefcha, Fri Mar 28 16:57:52 2003 UTC
# Line 41  void receive_response(int *sock, char *b Line 41  void receive_response(int *sock, char *b
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    
# Line 71  void bye_response(char *buf) Line 71  void bye_response(char *buf)
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);
# Line 88  int greeting_response(int *sock) Line 88  int greeting_response(int *sock)
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    
# Line 107  int logout_response(int *sock, unsigned Line 107  int logout_response(int *sock, unsigned
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    
# Line 134  int capability_response(int *sock, unsig Line 134  int capability_response(int *sock, unsig
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();
# Line 169  int namespace_response(int *sock, unsign Line 169  int namespace_response(int *sock, unsign
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    
# Line 217  int status_response(int *sock, unsigned Line 217  int status_response(int *sock, unsigned
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    
# Line 240  int select_response(int *sock, unsigned Line 240  int select_response(int *sock, unsigned
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    
# Line 274  int search_response(int *sock, unsigned Line 274  int search_response(int *sock, unsigned
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;
# Line 324  int fetch_response(int *sock, unsigned i Line 324  int fetch_response(int *sock, unsigned i
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;
# Line 352  int fetchsize_response(int *sock, unsign Line 352  int fetchsize_response(int *sock, unsign
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    
# Line 377  int append_response(int *sock, unsigned Line 377  int append_response(int *sock, unsigned
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    

Legend:
Removed from v.1.23.2.8  
changed lines
  Added in v.1.23.2.9

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26