Changeset 0c502e9
- Timestamp:
- Jun 22, 2003, 12:56:03 AM (20 years ago)
- 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
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
rc3ab155 r0c502e9 1 1 $Id$ 2 3 2.0.4-pre-2 4 Added filter field 'login' which can take the values 'login' 5 'logout' or 'none' 6 Added the perl variable $owl::login, just as above 7 Updated the 'login' and 'trash' filters appropriately 8 Fix for checking for DES 9 Bug fix in using makemsg when no curses window present 2 10 3 11 2.0.4-pre-1 -
commands.c
rc3ab155 r0c502e9 453 453 "syntax would be:\n\n" 454 454 " filter myfilter -c red ( class ^foobar$ ) or ( class ^quux$ and instance ^bar$ )\n\n" 455 "Valid matching fields are class, instance, recipient, sender,\n" 456 "opcode and realm. Valid operations are 'and', 'or' and 'not'.\n" 455 "Valid matching fields are:\n" 456 " sender - sender\n" 457 " recipient - recipient\n" 458 " class - zephyr class name\n" 459 " instance - zephyr instance name\n" 460 " opcode - zephyr opcode\n" 461 " realm - zephyr realm\n" 462 " body - message body\n" 463 " type - message type (zephyr, aim, admin)\n" 464 " direction - either 'in' 'out' or 'none'\n" 465 " login - either 'login' 'logout' or 'none'\n" 466 "Valid operators are:\n" 467 " and\n" 468 " or\n" 469 " not\n" 470 "And additionally you may use the static values:\n" 471 " true\n" 472 " false\n" 457 473 "Spaces must be present before and after parenthesis. If the\n" 458 474 "optional color argument is used it specifies the color that\n" 459 475 "messages matching this filter should be displayed in.\n\n" 460 461 476 "SEE ALSO: view, viewclass, viewuser\n"), 462 477 -
filter.c
r3abf28b r0c502e9 65 65 !strcasecmp(argv[i], "realm") || 66 66 !strcasecmp(argv[i], "type") || 67 !strcasecmp(argv[i], "direction")) { 67 !strcasecmp(argv[i], "direction") || 68 !strcasecmp(argv[i], "login")) { 68 69 regexstr=owl_util_substitute(argv[i+1], "%me%", ZGetSender()); 69 70 owl_filterelement_create_re(fe, argv[i], regexstr); … … 161 162 match=""; 162 163 } 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 } 163 172 } 164 173 -
functions.c
r5639bf2 r0c502e9 726 726 char buff[2048]; 727 727 728 if (!owl_global_get_curs_msgwin(&g)) return; 729 728 730 va_start(ap, fmt); 729 731 werase(owl_global_get_curs_msgwin(&g)); … … 741 743 va_list ap; 742 744 char buff[2048]; 745 746 if (!owl_global_get_curs_msgwin(&g)) return; 743 747 744 748 va_start(ap, fmt); -
owl.c
rbe0a79f r0c502e9 170 170 171 171 f=owl_malloc(sizeof(owl_filter)); 172 owl_filter_init_fromstring(f, "trash", "class ^mail$ or opcode ^ping$ or type ^admin$ or class ^login$");172 owl_filter_init_fromstring(f, "trash", "class ^mail$ or opcode ^ping$ or type ^admin$ or ( not login ^none$ )"); 173 173 owl_list_append_element(owl_global_get_filterlist(&g), f); 174 174 … … 182 182 183 183 f=owl_malloc(sizeof(owl_filter)); 184 owl_filter_init_fromstring(f, "login", " class ^login$");184 owl_filter_init_fromstring(f, "login", "not login ^none$"); 185 185 owl_list_append_element(owl_global_get_filterlist(&g), f); 186 186 -
owl.h
rbe0a79f r0c502e9 17 17 static const char owl_h_fileIdent[] = "$Id$"; 18 18 19 #define OWL_VERSION 2.0.4-pre- 120 #define OWL_VERSION_STRING "2.0.4-pre- 1"19 #define OWL_VERSION 2.0.4-pre-2 20 #define OWL_VERSION_STRING "2.0.4-pre-2" 21 21 22 22 #define OWL_DEBUG 0 … … 123 123 #define OWL_CMD_ALIAS_SUMMARY_PREFIX "command alias to: " 124 124 125 #if defined(HAVE_DES_STRING_TO_KEY) && defined(HAVE_DES_KEY_SCHED) && defined(HAVE_DES_ECB_ENCRYPT )125 #if defined(HAVE_DES_STRING_TO_KEY) && defined(HAVE_DES_KEY_SCHED) && defined(HAVE_DES_ECB_ENCRYPT_PROTO) 126 126 #define OWL_ENABLE_ZCRYPT 1 127 127 #endif -
readconfig.c
rbd3f232 r0c502e9 86 86 perl_get_sv("owl::time", TRUE); 87 87 perl_get_sv("owl::host", TRUE); 88 perl_get_sv("owl::login", TRUE); 88 89 perl_get_av("owl::fields", TRUE); 89 90 … … 178 179 } else { 179 180 sv_setpv(perl_get_sv("owl::direction", TRUE), "unknown"); 181 } 182 183 /* set owl::login */ 184 if (owl_message_is_login(m)) { 185 sv_setpv(perl_get_sv("owl::login", TRUE), "login"); 186 } else if (owl_message_is_logout(m)) { 187 sv_setpv(perl_get_sv("owl::login", TRUE), "logout"); 188 } else { 189 sv_setpv(perl_get_sv("owl::login", TRUE), "none"); 180 190 } 181 191 -
stylefunc.c
r5639bf2 r0c502e9 460 460 owl_fmtext_append_normal(fm, "\n"); 461 461 if (tmp) owl_free(tmp); 462 } 463 464 /* make personal messages bold for smaat users */465 if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) { 466 owl_fmtext_addattr(fm, OWL_FMTEXT_ATTR_BOLD);462 463 /* make personal messages bold for smaat users */ 464 if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) { 465 owl_fmtext_addattr(fm, OWL_FMTEXT_ATTR_BOLD); 466 } 467 467 } 468 468 } else if (owl_message_is_type_admin(m)) {
Note: See TracChangeset
for help on using the changeset viewer.