- Timestamp:
- May 22, 2010, 10:37:26 PM (16 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 98d7757
- Parents:
- 5aa33fd
- git-author:
- Nelson Elhage <nelhage@mit.edu> (05/21/10 16:46:40)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/22/10 22:37:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r0881cdd r04b16f8 1043 1043 g->interrupted = 0; 1044 1044 } 1045 1046 void owl_global_setup_default_filters(owl_global *g) 1047 { 1048 int i; 1049 static const struct { 1050 const char *name; 1051 const char *desc; 1052 } filters[] = { 1053 { "personal", 1054 "private ^true$ and ( not type ^zephyr$ or " 1055 "( class ^message and ( instance ^personal$ or instance ^urgent$ ) ) )" }, 1056 { "trash", 1057 "class ^mail$ or opcode ^ping$ or type ^admin$ or ( not login ^none$ )" }, 1058 { "wordwrap", "not ( type ^admin$ or type ^zephyr$ )" }, 1059 { "ping", "opcode ^ping$" }, 1060 { "auto", "opcode ^auto$" }, 1061 { "login", "not login ^none$" }, 1062 { "reply-lockout", "class ^noc or class ^mail$" }, 1063 { "out", "direction ^out$" }, 1064 { "aim", "type ^aim$" }, 1065 { "zephyr", "type ^zephyr$" }, 1066 { "none", "false" }, 1067 { "all", "true" }, 1068 { NULL, NULL } 1069 }; 1070 1071 owl_function_debugmsg("startup: creating default filters"); 1072 1073 for (i = 0; filters[i].name != NULL; i++) 1074 owl_global_add_filter(g, owl_filter_new_fromstring(filters[i].name, 1075 filters[i].desc)); 1076 }
Note: See TracChangeset
for help on using the changeset viewer.
