aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/maildirFolder.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-12-04 17:48:02 +0000
committerVincent Richard <[email protected]>2004-12-04 17:48:02 +0000
commit31cd25b5b05a8d0ae41c16f504566efde43b3a68 (patch)
treedd839c0e097493882ac825e2e51d5ba5007ecde0 /src/messaging/maildirFolder.hpp
parentPrevent from renaming 'INBOX' folder in IMAP (illegal_operation exception). (diff)
downloadvmime-31cd25b5b05a8d0ae41c16f504566efde43b3a68.tar.gz
vmime-31cd25b5b05a8d0ae41c16f504566efde43b3a68.zip
Some update for 'maildir' protocol.
Diffstat (limited to 'src/messaging/maildirFolder.hpp')
-rw-r--r--src/messaging/maildirFolder.hpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/messaging/maildirFolder.hpp b/src/messaging/maildirFolder.hpp
index 65835219..96883736 100644
--- a/src/messaging/maildirFolder.hpp
+++ b/src/messaging/maildirFolder.hpp
@@ -27,6 +27,8 @@
#include "../types.hpp"
#include "folder.hpp"
+#include "../utility/file.hpp"
+
namespace vmime {
namespace messaging {
@@ -134,9 +136,22 @@ private:
int m_unreadMessageCount;
int m_messageCount;
- std::vector <folder::path::component> m_unreadMessageFilenames;
- std::vector <folder::path::component> m_messageFilenames;
+ // Store information about scanned messages
+ struct messageInfos
+ {
+ enum Type
+ {
+ TYPE_CUR,
+ TYPE_DELETED
+ };
+
+ utility::file::path::component path; // filename
+ Type type; // current location
+ };
+
+ std::vector <messageInfos> m_messageInfos;
+ // Instanciated message objects
std::vector <maildirMessage*> m_messages;
};