Changeset 04b16f8 for owl.c


Ignore:
Timestamp:
May 22, 2010, 10:37:26 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, 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)
Message:
Set up filters and a view in the tester.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r3687413 r04b16f8  
    149149}
    150150
    151 static void owl_setup_default_filters(void)
    152 {
    153   int i;
    154   static const struct {
    155     const char *name;
    156     const char *desc;
    157   } filters[] = {
    158     { "personal",
    159       "isprivate ^true$ and ( not type ^zephyr$ or ( class ^message  ) )" },
    160     { "trash",
    161       "class ^mail$ or opcode ^ping$ or type ^admin$ or ( not login ^none$ )" },
    162     { "wordwrap", "not ( type ^admin$ or type ^zephyr$ )" },
    163     { "ping", "opcode ^ping$" },
    164     { "auto", "opcode ^auto$" },
    165     { "login", "not login ^none$" },
    166     { "reply-lockout", "class ^noc or class ^mail$" },
    167     { "out", "direction ^out$" },
    168     { "aim", "type ^aim$" },
    169     { "zephyr", "type ^zephyr$" },
    170     { "none", "false" },
    171     { "all", "true" },
    172     { NULL, NULL }
    173   };
    174 
    175   owl_function_debugmsg("startup: creating default filters");
    176 
    177   for (i = 0; filters[i].name != NULL; i++)
    178     owl_global_add_filter(&g, owl_filter_new_fromstring(filters[i].name,
    179                                                         filters[i].desc));
    180 }
    181151
    182152/*
     
    563533  owl_global_complete_setup(&g);
    564534
    565   owl_setup_default_filters();
     535  owl_global_setup_default_filters(&g);
    566536
    567537  /* set the current view */
Note: See TracChangeset for help on using the changeset viewer.