--- a/src/internfile/mimehandler.h
+++ b/src/internfile/mimehandler.h
@@ -17,6 +17,8 @@
#ifndef _MIMEHANDLER_H_INCLUDED_
#define _MIMEHANDLER_H_INCLUDED_
#include "autoconfig.h"
+
+#include <stdio.h>
#include <string>
#include <list>
@@ -64,6 +66,13 @@
virtual bool set_document_string(const std::string &) {return false;}
virtual bool set_document_data(const char *cp, unsigned int sz) {
return set_document_string(string(cp, sz));
+ }
+
+ virtual void set_docsize(size_t size)
+ {
+ char csize[30];
+ sprintf(csize, "%lld", (long long)size);
+ m_metaData[cstr_dj_keydocsize] = csize;
}
virtual bool has_documents() const {return m_havedoc;}