Switch to unified view

a/src/internfile/mh_mail.h b/src/internfile/mh_mail.h
1
#ifndef _MAIL_H_INCLUDED_
1
#ifndef _MAIL_H_INCLUDED_
2
#define _MAIL_H_INCLUDED_
2
#define _MAIL_H_INCLUDED_
3
/* @(#$Id: mh_mail.h,v 1.3 2005-11-08 21:02:55 dockes Exp $  (C) 2004 J.F.Dockes */
3
/* @(#$Id: mh_mail.h,v 1.4 2005-11-18 13:23:46 dockes Exp $  (C) 2004 J.F.Dockes */
4
4
#include "mimehandler.h"
5
#include "mimehandler.h"
6
5
namespace Binc {
7
namespace Binc {
6
    class MimeDocument;
8
    class MimeDocument;
7
}
9
}
8
10
11
/** 
9
/// Translate a mail folder file into internal documents (also works
12
    Translate a mail folder file into internal documents (also works
10
/// for maildir files)
13
    for maildir files). This has to keep state while parsing a mail folder
14
    file. 
15
*/
11
class MimeHandlerMail : public MimeHandler {
16
class MimeHandlerMail : public MimeHandler {
17
 public:
18
    MimeHandlerMail() : vfp(0), msgnum(0), conf(0) {}
19
20
    virtual MimeHandler::Status 
21
  mkDoc(RclConfig *conf, const std::string &fn, 
22
        const std::string &mtype, Rcl::Doc &docout, std::string& ipath);
23
24
    virtual ~MimeHandlerMail();
25
26
 private:
12
    void *vfp;
27
    void *vfp;
13
    int msgnum;
28
    int msgnum;
14
    RclConfig *conf;
29
    RclConfig *conf;
15
    MimeHandler::Status processone(const string &fn, Binc::MimeDocument& doc,
30
    MimeHandler::Status processone(const string &fn, Binc::MimeDocument& doc,
16
                   Rcl::Doc &docout);
31
                   Rcl::Doc &docout);
17
    MimeHandler::Status processmbox(const string &fn, Rcl::Doc &docout, 
32
    MimeHandler::Status processmbox(const string &fn, Rcl::Doc &docout, 
18
                   string &ipath);
33
                   string &ipath);
19
 public:
20
    MimeHandlerMail() : vfp(0), msgnum(0), conf(0) {}
21
    virtual ~MimeHandlerMail();
22
    virtual MimeHandler::Status 
23
  mkDoc(RclConfig *conf, const string &fn, 
24
         const string &mtype, Rcl::Doc &docout, string& ipath);
25
};
34
};
26
35
27
#endif /* _MAIL_H_INCLUDED_ */
36
#endif /* _MAIL_H_INCLUDED_ */