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

Diff of /imapfilter/data.c

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

revision 1.29 by lefcha, Thu Jul 25 21:24:39 2002 UTC revision 1.30 by lefcha, Thu Jul 25 21:27:48 2002 UTC
# Line 302  void init_filter(filter_t * node) Line 302  void init_filter(filter_t * node)
302      node->action.raccount = NULL;      node->action.raccount = NULL;
303      node->action.destmbox[0] = node->action.args[0] = 0;      node->action.destmbox[0] = node->action.args[0] = 0;
304      node->masks = NULL;      node->masks = NULL;
305      node->masknum = node->ormasknum = node->masklen = 0;      node->masknum = node->masklen = 0;
306  }  }
307    
308    
# Line 517  int set_mask(char *line, regmatch_t * ma Line 517  int set_mask(char *line, regmatch_t * ma
517      if (match[2].rm_so != -1 && cur_fltr->masks) {      if (match[2].rm_so != -1 && cur_fltr->masks) {
518          if (!strncasecmp(line + match[2].rm_so, "or", 2)) {          if (!strncasecmp(line + match[2].rm_so, "or", 2)) {
519              node->type = MASK_TYPE_OR;              node->type = MASK_TYPE_OR;
             if ((cur_fltr->mode = FILTER_MODE_OR))  
                 cur_fltr->ormasknum++;  
520          } else          } else
521              node->type = MASK_TYPE_AND;              node->type = MASK_TYPE_AND;
522      }      }

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26