]> mj.ucw.cz Git - umpf.git/blobdiff - umpf.h
started with filtering mail
[umpf.git] / umpf.h
diff --git a/umpf.h b/umpf.h
index 87f5477a9c0d82f3faef23746a2902346f34157a..32cd804e174d93edaa74863b07d8705e8d48e881 100644 (file)
--- a/umpf.h
+++ b/umpf.h
@@ -9,7 +9,8 @@ enum keyword {
        K_COPY,
        K_MAIL,
        K_PIPE,
-       K_EMPTY
+       K_EMPTY,
+       K_FILTER
 };
 
 struct tree {
@@ -100,7 +101,6 @@ struct code {
                OPC_JUMP_IF,
                OPC_JUMP_UNLESS,
                OPC_DELIVER,
-               OPC_CALL_EXT,
                OPC_NOP,
                OPC_CAT,
                OPC_GT,
@@ -121,6 +121,7 @@ struct code {
                OPC_DIV,
                OPC_PIPE,
                OPC_MAIL,
+               OPC_FILTER,
                OPC_DISCARD
        } opcode;
 
@@ -204,9 +205,11 @@ void save_current_headers(struct list* hash);
 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, ...);
 
 /* ham.c */
 char* default_mailbox;
+int chars_written;
 
 struct list* current_headers;
 struct email* current_body;
@@ -215,6 +218,8 @@ void print_headers(struct list* l);
 struct email* get_body(void);
 int deliver_local_email(char* folder, struct email* email);
 int write_email_to_fd(int fd, struct email* email);
+char* read_email(struct email* em);
+void open_email(void);
 
 /* lock.c */
 void save_gids(void);