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

Diff of /imapfilter/response.c

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

revision 1.17.2.1 by lefcha, Wed Dec 5 09:55:12 2001 UTC revision 1.17.2.2 by lefcha, Mon Jan 21 15:43:42 2002 UTC
# Line 148  int status_response(unsigned int tag, ch Line 148  int status_response(unsigned int tag, ch
148          info("No messages in mailbox %s.\n", mbox);          info("No messages in mailbox %s.\n", mbox);
149          return -2;          return -2;
150      }      }
151      info("%d message%s, %d recent, %d unseen, in mailbox %s.\n", exist,      info("%d message%s, %d recent, %d unseen, in mailbox \"%s\".\n", exist,
152           plural(exist), recent, unseen, mbox);           plural(exist), recent, unseen, mbox);
153    
154      return r;      return r;
# Line 312  int fetch_response(unsigned int tag) Line 312  int fetch_response(unsigned int tag)
312   */   */
313  int copy_response(unsigned int tag)  int copy_response(unsigned int tag)
314  {  {
315        int r = RESPONSE_OK;
316      char buf[RESPONSE_BUF];      char buf[RESPONSE_BUF];
317    
318      do      do
319          receive_response(buf);          receive_response(buf);
320      while (!strcasestr(buf, ultostr(tag, 16)));      while (!strcasestr(buf, ultostr(tag, 16)));
321    
322      if (analyze_response(buf) == RESPONSE_NO      if ((r = analyze_response(buf)) == RESPONSE_NO
323          && strcasestr(buf, "[TRYCREATE]"))          && strcasestr(buf, "[TRYCREATE]"))
324          return RESPONSE_TRYCREATE;          return RESPONSE_TRYCREATE;
325        
326      return RESPONSE_OK;      return r;
327  }  }
328    
329    

Legend:
Removed from v.1.17.2.1  
changed lines
  Added in v.1.17.2.2

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26