From 65387963edd8c0da888f23fe03c3f36916055744 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 7 Jun 2017 20:57:33 +0200 Subject: [PATCH] Avoid creating temp files for mh_null and mh_unknown... --- src/internfile/mh_null.h | 4 ++++ src/internfile/mh_unknown.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/internfile/mh_null.h b/src/internfile/mh_null.h index b62453e1..952d6a2a 100644 --- a/src/internfile/mh_null.h +++ b/src/internfile/mh_null.h @@ -39,6 +39,10 @@ class MimeHandlerNull : public RecollFilter { } virtual ~MimeHandlerNull() {} + virtual bool is_data_input_ok(DataInput input) const { + return true; + } + virtual bool next_document() { if (m_havedoc == false) diff --git a/src/internfile/mh_unknown.h b/src/internfile/mh_unknown.h index 00b799a5..35ea7891 100644 --- a/src/internfile/mh_unknown.h +++ b/src/internfile/mh_unknown.h @@ -32,6 +32,10 @@ class MimeHandlerUnknown : public RecollFilter { : RecollFilter(cnf, id) { } virtual ~MimeHandlerUnknown() {} + virtual bool is_data_input_ok(DataInput input) const { + return true; + } + virtual bool next_document() { if (m_havedoc == false) return false;