Changeset 49d467c for filter.c


Ignore:
Timestamp:
Oct 20, 2003, 1:45:23 AM (17 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:
269ed34
Parents:
4664c96
Message:
Allow filtering on hostname.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r09489b89 r49d467c  
    6868          !strcasecmp(argv[i], "type") ||
    6969          !strcasecmp(argv[i], "direction") ||
     70          !strcasecmp(argv[i], "hostname") ||
    7071          !strcasecmp(argv[i], "login")) {
    7172        regexstr=owl_util_substitute(argv[i+1], "%me%", owl_zephyr_get_sender());
     
    162163    } else if (!strcasecmp(field, "type")) {
    163164      match=owl_message_type_to_string(m);
     165    } else if (!strcasecmp(field, "hostname")) {
     166      match=owl_message_get_hostname(m);
    164167    } else if (!strcasecmp(field, "direction")) {
    165168      if (owl_message_is_direction_out(m)) {
Note: See TracChangeset for help on using the changeset viewer.