From d6636e2597252c01c2277730c2217719f2ce19b8 Mon Sep 17 00:00:00 2001 From: dockes Date: Tue, 26 Aug 2008 07:31:54 +0000 Subject: [PATCH] implement skip_to_document --- src/internfile/mh_exec.cpp | 4 +++- src/internfile/mh_exec.h | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/internfile/mh_exec.cpp b/src/internfile/mh_exec.cpp index d3936fb2..c1e8ad1c 100644 --- a/src/internfile/mh_exec.cpp +++ b/src/internfile/mh_exec.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: mh_exec.cpp,v 1.9 2007-02-06 18:01:58 dockes Exp $ (C) 2005 J.F.Dockes"; +static char rcsid[] = "@(#$Id: mh_exec.cpp,v 1.10 2008-08-26 07:31:54 dockes Exp $ (C) 2005 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -56,6 +56,8 @@ bool MimeHandlerExec::next_document() list::iterator it = params.begin(); listmyparams(++it, params.end()); myparams.push_back(m_fn); + if (!m_ipath.empty()) + myparams.push_back(m_ipath); // Execute command and store the result text, which is supposedly html string& html = m_metaData["content"]; diff --git a/src/internfile/mh_exec.h b/src/internfile/mh_exec.h index b8cd5850..62f9caeb 100644 --- a/src/internfile/mh_exec.h +++ b/src/internfile/mh_exec.h @@ -16,7 +16,7 @@ */ #ifndef _MH_EXEC_H_INCLUDED_ #define _MH_EXEC_H_INCLUDED_ -/* @(#$Id: mh_exec.h,v 1.4 2007-10-25 15:50:31 dockes Exp $ (C) 2004 J.F.Dockes */ +/* @(#$Id: mh_exec.h,v 1.5 2008-08-26 07:31:54 dockes Exp $ (C) 2004 J.F.Dockes */ #include #include @@ -40,8 +40,13 @@ class MimeHandlerExec : public RecollFilter { return true; } virtual bool next_document(); + virtual bool skip_to_document(const string& ipath) { + m_ipath = ipath; + return true; + } private: string m_fn; + string m_ipath; }; #endif /* _MH_EXEC_H_INCLUDED_ */