Switch to unified view

a/src/internfile/mh_mbox.h b/src/internfile/mh_mbox.h
...
...
17
#ifndef _MBOX_H_INCLUDED_
17
#ifndef _MBOX_H_INCLUDED_
18
#define _MBOX_H_INCLUDED_
18
#define _MBOX_H_INCLUDED_
19
/* @(#$Id: mh_mbox.h,v 1.3 2008-10-04 14:26:59 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: mh_mbox.h,v 1.3 2008-10-04 14:26:59 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
#include <vector>
22
using std::string;
23
using std::string;
24
using std::vector;
23
25
24
#include "mimehandler.h"
26
#include "mimehandler.h"
25
27
26
/** 
28
/** 
27
 * Translate a mail folder file into internal documents (also works
29
 * Translate a mail folder file into internal documents (also works
...
...
29
 * file. 
31
 * file. 
30
 */
32
 */
31
class MimeHandlerMbox : public RecollFilter {
33
class MimeHandlerMbox : public RecollFilter {
32
 public:
34
 public:
33
    MimeHandlerMbox(const string& mime) 
35
    MimeHandlerMbox(const string& mime) 
34
  : RecollFilter(mime), m_vfp(0), m_msgnum(0), m_lineno(0)
36
      : RecollFilter(mime), m_vfp(0), m_msgnum(0), m_lineno(0), m_fsize(0)
35
    {}
37
    {}
36
    virtual ~MimeHandlerMbox();
38
    virtual ~MimeHandlerMbox();
37
    virtual bool set_document_file(const string &file_path);
39
    virtual bool set_document_file(const string &file_path);
38
    virtual bool next_document();
40
    virtual bool next_document();
39
    virtual bool skip_to_document(const string& ipath) {
41
    virtual bool skip_to_document(const string& ipath) {
40
    m_ipath = ipath;
42
    m_ipath = ipath;
41
    return true;
43
    return true;
42
    }
44
    }
43
    virtual void clear();
45
    virtual void clear();
46
    typedef long long mbhoff_type;
44
 private:
47
 private:
45
    string     m_fn;     // File name
48
    string     m_fn;     // File name
46
    void      *m_vfp;    // File pointer for folder
49
    void      *m_vfp;    // File pointer for folder
47
    int        m_msgnum; // Current message number in folder. Starts at 1
50
    int        m_msgnum; // Current message number in folder. Starts at 1
48
    string     m_ipath;
51
    string     m_ipath;
49
    int        m_lineno; // debug 
52
    int        m_lineno; // debug 
53
    mbhoff_type m_fsize;
54
    vector<mbhoff_type> m_offsets;
50
};
55
};
51
56
52
#endif /* _MBOX_H_INCLUDED_ */
57
#endif /* _MBOX_H_INCLUDED_ */