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

Diff of /imapfilter/request.c

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

revision 1.15 by lefcha, Fri Nov 9 15:50:30 2001 UTC revision 1.16 by lefcha, Fri Nov 9 23:39:43 2001 UTC
# Line 65  int select_mailbox(char *mbox) Line 65  int select_mailbox(char *mbox)
65   */   */
66  int mailbox_status(char *mbox)  int mailbox_status(char *mbox)
67  {  {
68      int r = 0;      return status_response(imap_status(mbox, "MESSAGES RECENT UNSEEN"), mbox);
   
     if (!(options & OPTION_DETAILS_QUIET)) {  
         r = status_response(imap_status(mbox, "MESSAGES RECENT UNSEEN"));  
         info("in mailbox %s.\n", mbox);  
     }  
     return r;  
69  }  }
70    
71    
72  /*  /*
73   * Close examined/selected mailbox.   * Close examined/selected mailbox.
74   */   */
# Line 101  int apply_filters(filter_t ** filters) Line 96  int apply_filters(filter_t ** filters)
96      char *mesgs;      char *mesgs;
97    
98      for (i = 0; filters[i]; i++) {      for (i = 0; filters[i]; i++) {
99            mesgs = NULL;
100    
101          if (match_filter(filters[i], &mesgs))          if (match_filter(filters[i], &mesgs))
102              continue;              continue;
# Line 136  int match_filter(filter_t * filter, char Line 132  int match_filter(filter_t * filter, char
132    
133      free(search);      free(search);
134    
135      if (!**mesgs)      if (!*mesgs)
136          return 1;          return 1;
137    
138      return 0;      return 0;
# Line 438  int action_move(char *mesgs, char *destm Line 434  int action_move(char *mesgs, char *destm
434  {  {
435      action_copy(mesgs, destmbox, args);      action_copy(mesgs, destmbox, args);
436      action_delete(mesgs, "\0");      action_delete(mesgs, "\0");
437      server_response(imap_expunge());  
438        /* CLOSE -> SELECT much faster that EXPUNGE -> SELECT */
439        /* server_response(imap_expunge()); */
440    
441      return 0;      return 0;
442  }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26