Switch to unified view

a/src/internfile/mh_execm.h b/src/internfile/mh_execm.h
...
...
39
 * From recollindex (the message begins before 'Filename'):
39
 * From recollindex (the message begins before 'Filename'):
40
 * 
40
 * 
41
Filename: 24
41
Filename: 24
42
/my/home/mail/somefolderIpath: 2
42
/my/home/mail/somefolderIpath: 2
43
22
43
22
44
44
<Message ends here: because of the empty line after '22'
45
<Message ends here: because of the empty line after '22'
46
45
 * 
47
 * 
46
 * Example answer:
48
 * Example answer:
47
 * 
49
 * 
48
Mimetype: 10
50
Mimetype: 10
49
text/plainData: 10
51
text/plainData: 10
50
0123456789
52
0123456789
53
51
<Message ends here because of empty line
54
<Message ends here because of empty line
55
52
 *        
56
 *        
53
 * This format is both extensible and reasonably easy to parse. 
57
 * This format is both extensible and reasonably easy to parse. 
54
 * While it's more destined for python or perl on the script side, it
58
 * While it's more fitted for python or perl on the script side, it
55
 * should even be sort of usable from the shell (ie: use dd to read
59
 * should even be sort of usable from the shell (ie: use dd to read
56
 * the counted data). Most alternatives would need data encoding in
60
 * the counted data). Most alternatives would need data encoding in
57
 * some cases.
61
 * some cases.
62
 *
63
 * Higher level dialog:
64
 * The c++ program is the master and sends request messages to the script. The
65
 * requests have the following fields:
66
 *  - Filename: the file to process. This can be empty meaning that we 
67
 *      are requesting the next document in the current file.
68
 *  - Ipath: this will be present only if we are requesting a specific 
69
 *      subdocument inside a container file (typically for preview, at query 
70
 *      time). Absent during indexing (ipaths are generated and sent back from
71
 *      the script
72
 *  - Mimetype: this is the mime type for the (possibly container) file. 
73
 *      Can be useful to filters which handle multiple types, like rclaudio.
74
 *      
75
 * The script answers with messages having the following fields:
76
 *   - Document: translated document data (typically, but not always, html)
77
 *   - Ipath: ipath for the returned document. Can be used at query time to
78
 *       extract a specific subdocument for preview. Not present or empty for 
79
 *       non-container files.
80
 *   - Mimetype: mime type for the returned data (ie: text/html, text/plain)
81
 *   - Eofnow: empty field: no document is returned and we're at eof.
82
 *   - Eofnext: empty field: file ends after the doc returned by this message.
83
 *   - SubdocError: no subdoc returned by this request, but file goes on.
84
 *      (the indexer (1.14) treats this as a file-fatal error anyway).
85
 *   - FileError: error, stop for this file.
58
 */
86
 */
59
class MimeHandlerExecMultiple : public MimeHandlerExec {
87
class MimeHandlerExecMultiple : public MimeHandlerExec {
60
    /////////
88
    /////////
61
    // Things not reset by "clear()", additionally to those in MimeHandlerExec
89
    // Things not reset by "clear()", additionally to those in MimeHandlerExec
62
    ExecCmd  m_cmd;
90
    ExecCmd  m_cmd;