Changeset 75be7c0 for filter.c


Ignore:
Timestamp:
Aug 18, 2002, 3:09:31 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5f37310
Parents:
60ffe04
Message:
Added "body" as a valid field to match on in a filter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r59cf91c r75be7c0  
    5656          !strcasecmp(argv[i], "sender") ||
    5757          !strcasecmp(argv[i], "recipient") ||
     58          !strcasecmp(argv[i], "body") ||
    5859          !strcasecmp(argv[i], "opcode") ||
    5960          !strcasecmp(argv[i], "realm") ||
     
    134135    } else if (!strcasecmp(field, "recipient")) {
    135136      match=owl_message_get_recipient(m);
     137    } else if (!strcasecmp(field, "body")) {
     138      match=owl_message_get_body(m);
    136139    } else if (!strcasecmp(field, "opcode")) {
    137140      match=owl_message_get_opcode(m);
     
    157160
    158161 
    159   /* call the recursive helper */
     162  /* call the recrsive helper */
    160163  i=_owl_filter_message_match_recurse(f, m, &work_fes, 0, owl_list_get_size(&(f->fes))-1);
    161164
Note: See TracChangeset for help on using the changeset viewer.