/[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.5 by lefcha, Sat Nov 9 14:18:23 2002 UTC revision 1.23.2.6 by lefcha, Sat Nov 9 16:13:26 2002 UTC
# Line 296  int fetch_response(int *sock, unsigned i Line 296  int fetch_response(int *sock, unsigned i
296    
297      b = vbuf;      b = vbuf;
298    
299      if (!s && (b = strstr(b, "}\r\n"))) {      if (!s) {
300          while (b - vbuf > 0)          if ((b = strstr(b, "}\r\n"))) {
301              if (*--b == '{')              while (b - vbuf > 0)
302                  break;                  if (*--b == '{')
303          s = atoi(++b) - 2;                      break;
304          b = strchr(b, '}');              s = atoi(++b) - 2;
305          b += 3;              b = strchr(b, '}');
306                b += 3;
307            } else {
308                return -3;          /* Null body. */
309            }
310      }      }
311      while (*b && s--)      while (*b && s--)
312          fetch[i++] = *(b++);          fetch[i++] = *(b++);

Legend:
Removed from v.1.23.2.5  
changed lines
  Added in v.1.23.2.6

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26