Changeset dec60b4 for global.c


Ignore:
Timestamp:
Jun 17, 2010, 9:41:41 AM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
3c2c7fc
Parents:
68e5464 (diff), 95414bf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge branch 'perl-tester'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r68e5464 rdec60b4  
    10321032  g->interrupted = 0;
    10331033}
     1034
     1035void owl_global_setup_default_filters(owl_global *g)
     1036{
     1037  int i;
     1038  static const struct {
     1039    const char *name;
     1040    const char *desc;
     1041  } filters[] = {
     1042    { "personal",
     1043      "private ^true$ and ( not type ^zephyr$ or "
     1044      "( class ^message and ( instance ^personal$ or instance ^urgent$ ) ) )" },
     1045    { "trash",
     1046      "class ^mail$ or opcode ^ping$ or type ^admin$ or ( not login ^none$ )" },
     1047    { "wordwrap", "not ( type ^admin$ or type ^zephyr$ )" },
     1048    { "ping", "opcode ^ping$" },
     1049    { "auto", "opcode ^auto$" },
     1050    { "login", "not login ^none$" },
     1051    { "reply-lockout", "class ^noc or class ^mail$" },
     1052    { "out", "direction ^out$" },
     1053    { "aim", "type ^aim$" },
     1054    { "zephyr", "type ^zephyr$" },
     1055    { "none", "false" },
     1056    { "all", "true" },
     1057    { NULL, NULL }
     1058  };
     1059
     1060  owl_function_debugmsg("startup: creating default filters");
     1061
     1062  for (i = 0; filters[i].name != NULL; i++)
     1063    owl_global_add_filter(g, owl_filter_new_fromstring(filters[i].name,
     1064                                                       filters[i].desc));
     1065}
Note: See TracChangeset for help on using the changeset viewer.