summaryrefslogtreecommitdiff
path: root/tools/ward.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-11-23 02:05:12 -0800
committerJohn Denker <jsd@av8n.com>2012-11-23 02:05:12 -0800
commitabc922f8a3f40b5f011cffe5cbe06e2c2df90d02 (patch)
tree22868f53795241b277b1cbc9990a8646795d0413 /tools/ward.c
parenta26e789121448d095227583f7a29ae2deac88a33 (diff)
major cleanup, now handles nested multipart mime
Diffstat (limited to 'tools/ward.c')
-rw-r--r--tools/ward.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/ward.c b/tools/ward.c
index b8bdee4..abea289 100644
--- a/tools/ward.c
+++ b/tools/ward.c
@@ -117,7 +117,9 @@ int main(int _argc, const char** _argv){
int rslt = mysk.headers(cin);
if (rslt) return rslt;
- mysk.dump_headers(cout);
+ mysk.dump_bigbuf(cout);
+ mysk.headerbuf = mysk.bigbuf;
+ mysk.bigbuf = vector<string>(0);
// Headers are done.
// Do some early-stage thinking.
@@ -126,5 +128,7 @@ int main(int _argc, const char** _argv){
if (rslt) return rslt;
rslt = mysk.body(cin, cout);
- return rslt;
+ if (rslt) return rslt;
+ mysk.dump_bigbuf(cout);
+ return 0;
}