Switch to unified view

a/src/internfile/mh_mbox.cpp b/src/internfile/mh_mbox.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: mh_mbox.cpp,v 1.4 2008-08-29 13:05:12 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: mh_mbox.cpp,v 1.5 2008-10-04 14:26:59 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
37
37
38
using namespace std;
38
using namespace std;
39
39
40
MimeHandlerMbox::~MimeHandlerMbox()
40
MimeHandlerMbox::~MimeHandlerMbox()
41
{
41
{
42
    clear();
43
}
44
45
void MimeHandlerMbox::clear()
46
{
47
    m_fn.erase();
42
    if (m_vfp) {
48
    if (m_vfp) {
43
    fclose((FILE *)m_vfp);
49
    fclose((FILE *)m_vfp);
44
    m_vfp = 0;
50
    m_vfp = 0;
45
    }
51
    }
52
    m_msgnum =  m_lineno = 0;
53
    m_ipath.erase();
54
    RecollFilter::clear();
46
}
55
}
47
56
48
bool MimeHandlerMbox::set_document_file(const string &fn)
57
bool MimeHandlerMbox::set_document_file(const string &fn)
49
{
58
{
50
    LOGDEB(("MimeHandlerMbox::set_document_file(%s)\n", fn.c_str()));
59
    LOGDEB(("MimeHandlerMbox::set_document_file(%s)\n", fn.c_str()));