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

Diff of /imapfilter/request.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, Wed Dec 5 21:17:11 2001 UTC
# Line 129  int apply_filters(filter_t ** filters) Line 129  int apply_filters(filter_t ** filters)
129          log_info(LOG_FILTER, filters[i]->key);          log_info(LOG_FILTER, filters[i]->key);
130    
131          apply_action(mesgs, &(filters[i]->action.type),          apply_action(mesgs, &(filters[i]->action.type),
132                       apply_namespace(filters[i]->action.destmbox,                       filters[i]->action.destmbox, filters[i]->action.args);
                                      namesp.prefix, namesp.delim),  
                      filters[i]->action.args);  
133    
134          free(mesgs);          free(mesgs);
135      }      }
# Line 369  int apply_action(char *mesgs, unsigned i Line 367  int apply_action(char *mesgs, unsigned i
367      case FILTER_ACTION_COPY:      case FILTER_ACTION_COPY:
368          info("%d message%s copied to mailbox %s.\n", cnt, plural(cnt),          info("%d message%s copied to mailbox %s.\n", cnt, plural(cnt),
369               destmbox);               destmbox);
370          action_copy(mesgs, destmbox, args);          action_copy(mesgs, apply_namespace(destmbox, namesp.prefix,
371                                               namesp.delim), args);
372          break;          break;
373      case FILTER_ACTION_MOVE:      case FILTER_ACTION_MOVE:
374          info("%d message%s moved to mailbox %s.\n", cnt, plural(cnt),          info("%d message%s moved to mailbox %s.\n", cnt, plural(cnt),
375               destmbox);               destmbox);
376          action_move(mesgs, destmbox, args);          action_move(mesgs, apply_namespace(destmbox, namesp.prefix,
377                                               namesp.delim), args);
378          break;          break;
379      case FILTER_ACTION_LIST:      case FILTER_ACTION_LIST:
380          info("%d message%s listed.\n", cnt, plural(cnt));          info("%d message%s listed.\n", cnt, plural(cnt));

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