]> mj.ucw.cz Git - umpf.git/blob - brum.c
facd0f968f100848a2571b52d31b55924c11d36c
[umpf.git] / brum.c
1 #include <stdio.h>
2 #include "brum.h"
3
4 int
5 main(int argc, char** argv)
6 {
7         int res;
8
9         if (argc < 2)
10                 die("Usage: ./brum conf_file");
11
12         save_gids();
13         read_conf(argv[1]);
14         //FIXME:
15         get_default_mailbox("/var/mail/anicka");
16
17 //      yydebug=1;
18         res = yyparse ();
19
20         if (res)
21                 return res;
22
23 //      print_tree(input_tree,0);
24
25         var_hash = new_var_hash();
26
27         current_headers = make_hlist();
28         current_body = get_body();
29 //      print_headers(current_headers);
30
31         save_current_headers(var_hash);
32         interp(input_tree, var_hash);
33         
34 //      print_vars(var_hash);
35
36         return 0;
37 }