- Timestamp:
- Jun 22, 2003, 1:40:49 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 53f421b
- Parents:
- a6560fe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
filter.c
r0c502e9 re187445 4 4 static const char fileIdent[] = "$Id$"; 5 5 6 int owl_filter_init_fromstring(owl_filter *f, char *name, char *string) { 6 int owl_filter_init_fromstring(owl_filter *f, char *name, char *string) 7 { 7 8 char **argv; 8 9 int argc, out; … … 14 15 } 15 16 16 int owl_filter_init(owl_filter *f, char *name, int argc, char **argv) { 17 int owl_filter_init(owl_filter *f, char *name, int argc, char **argv) 18 { 17 19 int i, error; 18 20 owl_filterelement *fe; … … 88 90 } 89 91 90 char *owl_filter_get_name(owl_filter *f) { 92 char *owl_filter_get_name(owl_filter *f) 93 { 91 94 return(f->name); 92 95 } 93 96 94 void owl_filter_set_polarity_match(owl_filter *f) { 97 void owl_filter_set_polarity_match(owl_filter *f) 98 { 95 99 f->polarity=0; 96 100 } 97 101 98 void owl_filter_set_polarity_unmatch(owl_filter *f) { 102 void owl_filter_set_polarity_unmatch(owl_filter *f) 103 { 99 104 f->polarity=1; 100 105 } 101 106 102 void owl_filter_set_color(owl_filter *f, int color) { 107 void owl_filter_set_color(owl_filter *f, int color) 108 { 103 109 f->color=color; 104 110 } 105 111 106 int owl_filter_get_color(owl_filter *f) { 112 int owl_filter_get_color(owl_filter *f) 113 { 107 114 return(f->color); 108 115 } 109 116 110 void owl_filter_set_cachedmsgid(owl_filter *f, int cachedmsgid) { 117 void owl_filter_set_cachedmsgid(owl_filter *f, int cachedmsgid) 118 { 111 119 f->cachedmsgid=cachedmsgid; 112 120 } 113 121 114 int owl_filter_get_cachedmsgid(owl_filter *f) { 122 int owl_filter_get_cachedmsgid(owl_filter *f) 123 { 115 124 return(f->cachedmsgid); 116 125 } 117 126 118 int owl_filter_message_match(owl_filter *f, owl_message *m) { 127 int owl_filter_message_match(owl_filter *f, owl_message *m) 128 { 119 129 int i, j, tmp; 120 130 owl_list work_fes, *fes; … … 205 215 } 206 216 207 int _owl_filter_message_match_recurse(owl_filter *f, owl_message *m, owl_list *fes, int start, int end) { 217 int _owl_filter_message_match_recurse(owl_filter *f, owl_message *m, owl_list *fes, int start, int end) 218 { 208 219 int a=0, b=0, i, x, y, z, score, ret, type; 209 220 owl_filterelement *fe, *tmpfe=NULL; … … 357 368 } 358 369 359 void owl_filter_print(owl_filter *f, char *out) { 370 void owl_filter_print(owl_filter *f, char *out) 371 { 360 372 int i, j; 361 373 owl_filterelement *fe; … … 381 393 } 382 394 383 int owl_filter_equiv(owl_filter *a, owl_filter *b) { 395 int owl_filter_equiv(owl_filter *a, owl_filter *b) 396 { 384 397 char buff[LINE], buff2[LINE]; 385 398 … … 391 404 } 392 405 393 void owl_filter_free(owl_filter *f) { 406 void owl_filter_free(owl_filter *f) 407 { 394 408 void (*func)(); 395 409
Note: See TracChangeset
for help on using the changeset viewer.