diff options
author | John Denker <jsd@av8n.com> | 2012-11-22 16:32:51 -0800 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-11-22 16:32:51 -0800 |
commit | 6faf97fd62cc84e2405731534236fb2a93ba4407 (patch) | |
tree | 17c201b43b40579fbf3efac0497035e29db238f5 /tools/libskrewt.h | |
parent | ccb16252f0f9f55198ca2662ab8daf7199b817de (diff) |
move some more stuff
Diffstat (limited to 'tools/libskrewt.h')
-rw-r--r-- | tools/libskrewt.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/libskrewt.h b/tools/libskrewt.h index c9d6721..94d06dd 100644 --- a/tools/libskrewt.h +++ b/tools/libskrewt.h @@ -1,4 +1,44 @@ #include <string> +#include <vector> +#include "qq_exit_codes.h" // a bit of a kludge +extern std::string progid; + +class skrewt{ +public: + std::string received_from; // envelope HELO among other things + std::string proximta_HELO; + std::string proximta_rDNS; + std::string proximta_IP; + std::string proximta_AuthUser; + std::string return_path; // envelope MAIL FROM + std::string boundary; + std::string to; + std::string from; + std::string subject; + std::string date; + std::string message_id; + std::string content_type; + std::string delivered_to; + int msgsize; + std::vector<std::string> bigbuf; + int saw_blank_line; + int recno; + + int maxsize; + int error_exit; + int mid_required; + + // constructor + skrewt() + : boundary("x-xx-x"), msgsize(0), saw_blank_line(0), recno(0), + maxsize(1000*1000), error_exit(0), mid_required(0) + {} + + int headers(); + int interstage(); + int body(); + int krunch_rfrom(); +}; void parse_content(const std::string type_spec_line, std::string &maintype, std::string &boundary); |