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

Diff of /imapfilter/filter.c

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

revision 1.7 by lefcha, Sat Dec 6 20:51:18 2003 UTC revision 1.8 by lefcha, Mon Feb 9 17:34:56 2004 UTC
# Line 72  set_filter(char *line, regmatch_t * m) Line 72  set_filter(char *line, regmatch_t * m)
72                  else                  else
73                          node->mode = FILTER_MODE_AND;                          node->mode = FILTER_MODE_AND;
74          }          }
75  #ifdef DEBUG          debug("FILTER: '%s' %s\n", node->key,
         fprintf(stderr, "debug: FILTER: '%s' %s\n", node->key,  
76              (node->mode == FILTER_MODE_OR ? "OR" : "AND"));              (node->mode == FILTER_MODE_OR ? "OR" : "AND"));
 #endif  
77    
78          INSERT_TREE(filters, node, filter);          INSERT_TREE(filters, node, filter);
79    
# Line 201  set_action(char *line, regmatch_t * m) Line 199  set_action(char *line, regmatch_t * m)
199                  while ((c = strchr(cur_fltr->action.args, ',')))                  while ((c = strchr(cur_fltr->action.args, ',')))
200                          *c = ' ';                          *c = ' ';
201          }          }
202  #ifdef DEBUG          debug("ACTION: %d '%s' '%s' %d '%s'\n",
         fprintf(stderr, "debug: ACTION: %d '%s' '%s' %d '%s'\n",  
203              cur_fltr->action.type,              cur_fltr->action.type,
204              (cur_fltr->action.raccount ? cur_fltr->action.raccount->key : ""),              (cur_fltr->action.raccount ? cur_fltr->action.raccount->key : ""),
205              cur_fltr->action.destmbox,              cur_fltr->action.destmbox,
206              cur_fltr->action.msgflags,              cur_fltr->action.msgflags,
207              cur_fltr->action.args);              cur_fltr->action.args);
 #endif  
208          return 0;          return 0;
209  }  }
210    
# Line 372  set_mask(char *line, regmatch_t * m, int Line 368  set_mask(char *line, regmatch_t * m, int
368          cur_fltr->masknum++;          cur_fltr->masknum++;
369          cur_fltr->masklen += len;          cur_fltr->masklen += len;
370    
371  #ifdef DEBUG          debug("MASK: '%s'\n", node->body);
         fprintf(stderr, "debug: MASK: '%s'\n", node->body);  
 #endif  
372    
373          return 0;          return 0;
374  }  }
# Line 456  link_mbox_filter(filter_t * cf, mboxgrp_ Line 450  link_mbox_filter(filter_t * cf, mboxgrp_
450    
451          }          }
452    
453  #ifdef DEBUG          debug("JOB: '%s' '%s'\n", cf->key, cg->key);
         fprintf(stderr, "debug: JOB: '%s' '%s'\n", cf->key, cg->key);  
 #endif  
454  }  }
455    
456    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26