added attachment support

This commit is contained in:
SJ
2012-09-07 15:08:50 +02:00
parent 853c4ab4f1
commit 33f0a88670
15 changed files with 221 additions and 39 deletions

View File

@@ -68,9 +68,11 @@ struct child {
struct attachment {
int size;
char type[TINYBUFSIZE];
char aname[TINYBUFSIZE];
char filename[TINYBUFSIZE];
char internalname[TINYBUFSIZE];
char digest[2*DIGEST_LENGTH+1];
char dumped;
};
@@ -125,6 +127,7 @@ struct _state {
int skip_html;
int has_to_dump;
int fd;
int b64fd;
int mfd;
int octetstream;
int realbinary;