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 |
|
|
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 |
|
|
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 |
} |
} |
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 |
|
|