summaryrefslogtreecommitdiffstats
path: root/maildrop/mio.h
diff options
context:
space:
mode:
authorSam Varshavchik2013-08-25 20:54:43 -0400
committerSam Varshavchik2013-08-28 21:07:40 -0400
commit9bb1a8d85390653f702e8ad5556a2cd3793acbfe (patch)
tree2aafb33608ec6c69182e00364d324f845a3e7325 /maildrop/mio.h
parent2ec3d0c52bff3e27242ae214571792c5f2d5299a (diff)
downloadcourier-libs-9bb1a8d85390653f702e8ad5556a2cd3793acbfe.tar.bz2
maildrop: rfc2045-parse message when reading it initially.
At startup MIME parse the message. maildrop no longer ignores leading blank lines, and From_ line. Use reformail -f0 to filter the message for maildrop, if that's the case. Get rid of msgoffset (starting offset of the message). rfc2045-parse the message as maildrop reads it.
Diffstat (limited to 'maildrop/mio.h')
-rw-r--r--maildrop/mio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/maildrop/mio.h b/maildrop/mio.h
index e53053f..6f5e250 100644
--- a/maildrop/mio.h
+++ b/maildrop/mio.h
@@ -30,8 +30,11 @@ class Mio {
int readcnt;
int writecnt;
int err;
- unsigned char buf[1024];
+
+ unsigned char buf[8192];
public:
+ struct rfc2045 *rfc2045p;
+
Mio();
virtual ~Mio();
int Open(const char *, int, mode_t=0666);