Bincimap 2.0.16
Easy Imapping
Loading...
Searching...
No Matches
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
12using namespace ::std;
13using namespace Binc;
14
15//------------------------------------------------------------------------
17{
18 if (!selected)
19 return;
20
21 if (mailboxchanged && !readOnly)
22 writeCache();
23
24 mailboxchanged = false;
25
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}
bool readOnly
Definition: mailbox.h:125
void closeMailbox(void)
bool writeCache(void)
void clear(void)
Definition: maildir.cc:820
static MaildirMessageCache & getInstance(void)
Declaration of the Maildir class.
Definition: bincimapd.cc:9