Changeset 4b464a4 for filter.c


Ignore:
Timestamp:
Aug 25, 2002, 11:35:03 AM (22 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
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:
56330ff
Parents:
7131cf2
Message:
Messages now have a direciton (in, out or none).  Filters can
     this direction
Outbound messages are no longer type 'admin' but are of the
     appropriate message type (i.e. 'zephyr') and are direction
     'out'.
Smartnarrow now works on outgoing messages
'info' updated to show more information for admin and outgoing
     messages
Renamed pretty_sender to short_zuser and renamed long_sender to
     long_zuser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r75be7c0 r4b464a4  
    5959          !strcasecmp(argv[i], "opcode") ||
    6060          !strcasecmp(argv[i], "realm") ||
    61           !strcasecmp(argv[i], "type")) {
     61          !strcasecmp(argv[i], "type") ||
     62          !strcasecmp(argv[i], "direction")) {
    6263        owl_filterelement_create_re(fe, argv[i], argv[i+1]);
    6364        i++;
     
    142143      match=owl_message_get_realm(m);
    143144    } else if (!strcasecmp(field, "type")) {
    144       if (owl_message_is_zephyr(m)) {
     145      if (owl_message_is_type_zephyr(m)) {
    145146        match="zephyr";
    146       } else if (owl_message_is_admin(m)) {
     147      } else if (owl_message_is_type_admin(m)) {
    147148        match="admin";
     149      } else {
     150        match="";
     151      }
     152    } else if (!strcasecmp(field, "direction")) {
     153      if (owl_message_is_direction_out(m)) {
     154        match="out";
     155      } else if (owl_message_is_direction_in(m)) {
     156        match="in";
     157      } else if (owl_message_is_direction_none(m)) {
     158        match="none";
    148159      } else {
    149160        match="";
Note: See TracChangeset for help on using the changeset viewer.