Switch to unified view

a/src/internfile/mh_mail.h b/src/internfile/mh_mail.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _MAIL_H_INCLUDED_
17
#ifndef _MAIL_H_INCLUDED_
18
#define _MAIL_H_INCLUDED_
18
#define _MAIL_H_INCLUDED_
19
/* @(#$Id: mh_mail.h,v 1.5 2006-01-30 11:15:27 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: mh_mail.h,v 1.6 2006-04-07 08:51:15 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include "mimehandler.h"
21
#include "mimehandler.h"
22
22
23
namespace Binc {
23
namespace Binc {
24
    class MimeDocument;
24
    class MimeDocument;
25
}
25
}
26
26
27
/** 
27
/** 
28
    Translate a mail folder file into internal documents (also works
28
 * Translate a mail folder file into internal documents (also works
29
    for maildir files). This has to keep state while parsing a mail folder
29
 * for maildir files). This has to keep state while parsing a mail folder
30
    file. 
30
 * file. 
31
*/
31
 */
32
class MimeHandlerMail : public MimeHandler {
32
class MimeHandlerMail : public MimeHandler {
33
 public:
33
 public:
34
    MimeHandlerMail() : vfp(0), msgnum(0), conf(0) {}
34
    MimeHandlerMail() : m_vfp(0), m_msgnum(0), m_conf(0) {}
35
35
36
    virtual MimeHandler::Status 
36
    virtual MimeHandler::Status 
37
    mkDoc(RclConfig *conf, const std::string &fn, 
37
    mkDoc(RclConfig *conf, const std::string &fn, 
38
          const std::string &mtype, Rcl::Doc &docout, std::string& ipath);
38
          const std::string &mtype, Rcl::Doc &docout, std::string& ipath);
39
39
40
    virtual ~MimeHandlerMail();
40
    virtual ~MimeHandlerMail();
41
41
42
 private:
42
 private:
43
    void *vfp;
43
    void      *m_vfp;    // File pointer for folder
44
    int msgnum;
44
    int        m_msgnum; // Current message number in folder. Starts at 1
45
    RclConfig *conf;
45
    RclConfig *m_conf;   // Keep pointer to rclconfig around
46
46
    MimeHandler::Status processone(const string &fn, Binc::MimeDocument& doc,
47
    MimeHandler::Status processone(const string &fn, Binc::MimeDocument& doc,
47
                   Rcl::Doc &docout);
48
                   Rcl::Doc &docout);
48
    MimeHandler::Status processmbox(const string &fn, Rcl::Doc &docout, 
49
    MimeHandler::Status processmbox(const string &fn, Rcl::Doc &docout, 
49
                   string &ipath);
50
                   string &ipath);
50
};
51
};