10 list_init(&input_code);
11 var_hash = new_var_hash();
12 const_tab = xmalloc(BUFSIZE);
14 cur_const_s = BUFSIZE;
19 main(int argc, char** argv)
25 die("Usage: ./umpf conf_file [default_mailbox]");
28 p = getpwuid(getuid());
30 default_mailbox = cat("/var/mail/", p->pw_name);
32 default_mailbox = argv[2];
38 /* returning from longjump? save the mail and exit */
48 temp_varcode_start = current_varcode;
49 compile(input_tree, NULL);
52 var_tab = xmalloc((max_varcode + 1) * sizeof(char*));
53 for (i = 0; i <= max_varcode; i++) {
57 current_headers = make_hlist(0);
58 current_body = get_body(0);
59 save_current_headers(var_hash);
60 set_cur_mail_length_var(curr_email_len, var_hash);
62 interp(&input_code, var_hash);