]> mj.ucw.cz Git - umpf.git/blobdiff - umpf.h
add From line
[umpf.git] / umpf.h
diff --git a/umpf.h b/umpf.h
index 35f65ef7c352a39dbdfb9de0ea1636e02d267465..41cea0ca5a821c09104af5ba4cdca6174c53e080 100644 (file)
--- a/umpf.h
+++ b/umpf.h
@@ -1,5 +1,14 @@
+#include <setjmp.h>
 #include "lists.h"
 
+/* definitions of internal variables */
+#define INT_VAR_MAIL_LEN "MAIL_LEN"
+#define INT_VAR_LAST_EXIT "LAST_EXIT_CODE"
+#define INT_VAR_PIPE_RES "LAST_OUTPUT"
+
+/* umpf.c */
+jmp_buf env;
+
 /* cond.h */
 int yylex (void);
 void yyerror (char const *);
@@ -214,6 +223,7 @@ void print_vars(struct list* hash);
 void interp(struct list* ins, struct list* hash);
 void free_string(char* c);
 void __attribute__ ((noreturn)) bye(int code, char* msg, ...);
+void set_cur_mail_length_var(int len, struct list* hash);
 
 /* ham.c */
 char* default_mailbox;
@@ -223,6 +233,7 @@ int curr_email_len;
 struct list* current_headers;
 struct email* current_body;
 struct list* make_hlist(int fd);
+void new_header(char* buf, struct list* h);
 void print_headers(struct list* l);
 struct email* get_body(int fd);
 int deliver_local_email(char* folder, struct email* email);