diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-03-24 00:18:21 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-03-24 00:18:21 +0000 |
commit | c753710356d36bb624bd975a8409a6d794c00dda (patch) | |
tree | 69d2cfa94a0e1e61ead44130bcbf25f586f6baed /fetchmail.h | |
parent | d2d2a311c916b79faff67d00ba0cc5b9e3a0bdb8 (diff) | |
download | fetchmail-c753710356d36bb624bd975a8409a6d794c00dda.tar.gz fetchmail-c753710356d36bb624bd975a8409a6d794c00dda.tar.bz2 fetchmail-c753710356d36bb624bd975a8409a6d794c00dda.zip |
Incorporated Henrik Storner's mimedecode patch.
svn path=/trunk/; revision=1719
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fetchmail.h b/fetchmail.h index 4f01557d..1f528c06 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -169,6 +169,7 @@ struct query flag forcecr; /* if TRUE, force CRs before LFs in text */ flag pass8bits; /* if TRUE, ignore Content-Transfer-Encoding */ flag dropstatus; /* if TRUE, drop Status lines in mail */ + flag mimedecode; /* if TRUE, decode MIME-coded headers/coded printable*/ int limit; /* limit size of retrieved messages */ int fetchlimit; /* max # msgs to get in single poll */ int batchlimit; /* max # msgs to pass in single SMTP session */ @@ -326,6 +327,15 @@ int prc_filecheck(const char *); void to64frombits(unsigned char *, const unsigned char *, int); int from64tobits(char *, const char *); +/* unmime.c */ +/* Bit-mask returned by MimeBodyType */ +#define MSG_IS_7BIT 0x01 +#define MSG_IS_8BIT 0x02 +#define MSG_NEEDS_DECODE 0x80 +extern void UnMimeHeader(unsigned char *buf); +extern int MimeBodyType(unsigned char *hdrs); +extern int UnMimeBodyline(unsigned char **buf, int collapsedoubledot); + /* interface.c */ void interface_parse(char *, struct hostdata *); void interface_note_activity(struct hostdata *); |