Changeset 0c502e9 for filter.c


Ignore:
Timestamp:
Jun 22, 2003, 12:56:03 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:
9381782
Parents:
be0a79f
Message:
Added filter field 'login' which can take the values 'login'
   'logout' or 'none'
Added the perl variable $owl::login, just as above
Updated the 'login' and 'trash' filters appropriately
Fix for checking for DES
Bug fix in using makemsg when no curses window present
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r3abf28b r0c502e9  
    6565          !strcasecmp(argv[i], "realm") ||
    6666          !strcasecmp(argv[i], "type") ||
    67           !strcasecmp(argv[i], "direction")) {
     67          !strcasecmp(argv[i], "direction") ||
     68          !strcasecmp(argv[i], "login")) {
    6869        regexstr=owl_util_substitute(argv[i+1], "%me%", ZGetSender());
    6970        owl_filterelement_create_re(fe, argv[i], regexstr);
     
    161162        match="";
    162163      }
     164    } else if (!strcasecmp(field, "login")) {
     165      if (owl_message_is_login(m)) {
     166        match="login";
     167      } else if (owl_message_is_logout(m)) {
     168        match="logout";
     169      } else {
     170        match="none";
     171      }
    163172    }
    164173   
Note: See TracChangeset for help on using the changeset viewer.