about summary refs log tree commit diff
path: root/blaze822.h
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-02 16:13:25 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-02 16:13:25 +0200
commit27b21d7e204cfa17723702d3c04c0ee6df603fbf (patch)
treed5bd50d721c2eabde8ec7f09fb40d59cdb9f3105 /blaze822.h
parent56e89c9a557cd1182001a8b1130d7f10f40cc96a (diff)
downloadmblaze-27b21d7e204cfa17723702d3c04c0ee6df603fbf.tar.gz
mblaze-27b21d7e204cfa17723702d3c04c0ee6df603fbf.tar.xz
mblaze-27b21d7e204cfa17723702d3c04c0ee6df603fbf.zip
rfc2045: import walk_mime
Diffstat (limited to 'blaze822.h')
-rw-r--r--blaze822.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/blaze822.h b/blaze822.h
index 450da28..0f8329b 100644
--- a/blaze822.h
+++ b/blaze822.h
@@ -37,6 +37,10 @@ int blaze822_mime_body(struct message *msg, char **cto, char **bodyo, size_t *bo
 int blaze822_multipart(struct message *msg, struct message **imsg);
 int blaze822_mime_parameter(char *s, char *name, char **starto, char **stopo);
 
+typedef enum { MIME_CONTINUE, MIME_STOP, MIME_PRUNE } blaze822_mime_action;
+typedef blaze822_mime_action (*blaze822_mime_callback)(int, struct message *, char *, size_t);
+blaze822_mime_action blaze822_walk_mime(struct message *, int, blaze822_mime_callback);
+
 // seq.c
 
 char *blaze822_seq_open(char *file);