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

Diff of /imapfilter/request.c

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

revision 1.5 by lefcha, Tue Oct 2 07:31:52 2001 UTC revision 1.6 by lefcha, Tue Oct 2 13:33:58 2001 UTC
# Line 63  int mailbox_status(char *mbox) Line 63  int mailbox_status(char *mbox)
63    
64      if (!(options & OPTION_DETAILS_QUITE)) {      if (!(options & OPTION_DETAILS_QUITE)) {
65          imap_status(mbox, "MESSAGES RECENT UNSEEN");          imap_status(mbox, "MESSAGES RECENT UNSEEN");
66            info ("In mailbox %s,", mbox);
67          r = status_response();          r = status_response();
         info(" in mailbox %s.\n", mbox);  
68      }      }
69      return r;      return r;
70  }  }
# Line 365  int action_delete(char *mesgs, char *arg Line 365  int action_delete(char *mesgs, char *arg
365      char *tok, *mcp, *m, *acp, *occur;      char *tok, *mcp, *m, *acp, *occur;
366    
367      m = mcp = xstrdup(mesgs);      m = mcp = xstrdup(mesgs);
368      acp = xstrdup(args);      
369        if (*args) {
370      while ((occur = strchr(acp, ',')))          acp = xstrdup(args);
371          *occur = ' ';          while ((occur = strchr(acp, ',')))
372                *occur = ' ';
373        }
374    
375      while ((tok = strsep(&m, delim))) {      while ((tok = strsep(&m, delim))) {
376          if (*args) {          if (*args) {
# Line 380  int action_delete(char *mesgs, char *arg Line 382  int action_delete(char *mesgs, char *arg
382      }      }
383    
384      free(mcp);      free(mcp);
385        if (*args)
386            free(acp);
387    
388      return 0;      return 0;
389  }  }
# Line 394  int action_copy(char *mesgs, char *destm Line 398  int action_copy(char *mesgs, char *destm
398      char *tok, *mcp, *m, *acp, *occur;      char *tok, *mcp, *m, *acp, *occur;
399    
400      m = mcp = xstrdup(mesgs);      m = mcp = xstrdup(mesgs);
401      acp = xstrdup(args);      
402        if (*args) {
403      while ((occur = strchr(acp, ',')))          acp = xstrdup(args);
404          *occur = ' ';          
405            while ((occur = strchr(acp, ',')))
406                *occur = ' ';
407        }
408    
409      while ((tok = strsep(&m, delim))) {      while ((tok = strsep(&m, delim))) {
410          if (acp) {          if (*args) {
411              imap_fetch(1, tok, acp);              imap_fetch(1, tok, acp);
412              fetch_response();              fetch_response();
413          }          }
# Line 415  int action_copy(char *mesgs, char *destm Line 422  int action_copy(char *mesgs, char *destm
422      }      }
423    
424      free(mcp);      free(mcp);
425      free(acp);      
426        if (*args)
427            free(acp);
428    
429      return 0;      return 0;
430  }  }
# Line 448  int action_list(char *mesgs, char *args) Line 457  int action_list(char *mesgs, char *args)
457    
458      m = mcp = xstrdup(mesgs);      m = mcp = xstrdup(mesgs);
459      acp = xstrdup(args);      acp = xstrdup(args);
460        
461      while ((occur = strchr(acp, ',')))      while ((occur = strchr(acp, ',')))
462          *occur = ' ';          *occur = ' ';
463    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26