From abc922f8a3f40b5f011cffe5cbe06e2c2df90d02 Mon Sep 17 00:00:00 2001 From: John Denker Date: Fri, 23 Nov 2012 02:05:12 -0800 Subject: major cleanup, now handles nested multipart mime --- tools/libskrewt.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/libskrewt.h') diff --git a/tools/libskrewt.h b/tools/libskrewt.h index 5ae6ece..34cdfd3 100644 --- a/tools/libskrewt.h +++ b/tools/libskrewt.h @@ -31,30 +31,31 @@ public: std::string content_type; std::list delivered_to; int msgsize; - std::vector bigbuf; int saw_blank_line; int recno; - int maxsize; int error_exit; int mid_required; + std::vector headerbuf; + std::vector bigbuf; + xstr lookahead; // constructor skrewt() : spf_result(SPF_RESULT_INVALID), boundary("x-xx-x"), msgsize(0), saw_blank_line(0), recno(0), maxsize(1000*1000), error_exit(0), mid_required(0), + headerbuf(0), bigbuf(0), lookahead(1, "") {} xstr getRecord(std::istream& xin); xstr getLine(std::istream& xin); int headers(std::istream& xin); - int dump_headers(std::ostream& xout); + int dump_bigbuf(std::ostream& xout); int interstage(); int body(std::istream& xin, std::ostream& xout); int krunch_rfrom(); - xstr lookahead; }; void parse_content(const std::string type_spec_line, -- cgit v1.2.3