Bincimap
2.0.16
Easy Imapping
Loading...
Searching...
No Matches
2.0
bincimap-2.0.16
src
maildir-close.cc
Go to the documentation of this file.
1
7
#include "
maildir.h
"
8
9
#include <fcntl.h>
10
#include <unistd.h>
11
12
using namespace
::std;
13
using namespace
Binc
;
14
15
//------------------------------------------------------------------------
16
void
Binc::Maildir::closeMailbox
(
void
)
17
{
18
if
(!selected)
19
return
;
20
21
if
(mailboxchanged && !
readOnly
)
22
writeCache
();
23
24
mailboxchanged =
false
;
25
26
MaildirMessageCache::getInstance
().
clear
();
27
28
messages.clear();
29
index.
clear
();
30
newMessages.clear();
31
oldrecent = 0;
32
oldexists = 0;
33
firstscan =
true
;
34
cacheRead =
false
;
35
uidvalidity = 0;
36
uidnext = 1;
37
selected =
false
;
38
path =
""
;
39
40
old_bincimap_cache_st_mtime = 0;
41
old_bincimap_cache_st_ctime = 0;
42
old_cur_st_mtime = 0;
43
old_cur_st_ctime = 0;
44
old_new_st_mtime = 0;
45
old_new_st_ctime = 0;
46
}
Binc::Mailbox::readOnly
bool readOnly
Definition:
mailbox.h:125
Binc::Maildir::closeMailbox
void closeMailbox(void)
Definition:
maildir-close.cc:16
Binc::Maildir::writeCache
bool writeCache(void)
Definition:
maildir-writecache.cc:17
Binc::MaildirIndex::clear
void clear(void)
Definition:
maildir.cc:820
Binc::MaildirMessageCache::getInstance
static MaildirMessageCache & getInstance(void)
Definition:
maildirmessage.cc:1021
Binc::MaildirMessageCache::clear
void clear(void)
Definition:
maildirmessage.cc:1056
maildir.h
Declaration of the Maildir class.
Binc
Definition:
bincimapd.cc:9
Generated on Sun Sep 1 2024 12:00:02 for Bincimap by
1.9.6