aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/maildirStore.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-12-22 13:05:59 +0000
committerVincent Richard <[email protected]>2004-12-22 13:05:59 +0000
commitcc51a32255f103d782233f12537bdb0132f45e02 (patch)
tree759e15f091021acf45eacc8131a9d178628711c6 /src/messaging/maildirStore.cpp
parentUpdated ChangeLog. (diff)
downloadvmime-cc51a32255f103d782233f12537bdb0132f45e02.tar.gz
vmime-cc51a32255f103d782233f12537bdb0132f45e02.zip
Added getCapabilities() on messaging::store.
Diffstat (limited to 'src/messaging/maildirStore.cpp')
-rw-r--r--src/messaging/maildirStore.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/messaging/maildirStore.cpp b/src/messaging/maildirStore.cpp
index 3434321f..206c032b 100644
--- a/src/messaging/maildirStore.cpp
+++ b/src/messaging/maildirStore.cpp
@@ -75,7 +75,7 @@ folder* maildirStore::getFolder(const folder::path& path)
}
-const bool maildirStore::isValidFolderName(const folder::path::component& name)
+const bool maildirStore::isValidFolderName(const folder::path::component& name) const
{
if (!platformDependant::getHandler()->getFileSystemFactory()->isValidPathComponent(name))
return false;
@@ -154,6 +154,19 @@ const utility::path& maildirStore::getFileSystemPath() const
}
+const int maildirStore::getCapabilities() const
+{
+ return (CAPABILITY_CREATE_FOLDER |
+ CAPABILITY_RENAME_FOLDER |
+ CAPABILITY_ADD_MESSAGE |
+ CAPABILITY_COPY_MESSAGE |
+ CAPABILITY_DELETE_MESSAGE |
+ CAPABILITY_PARTIAL_FETCH |
+ CAPABILITY_MESSAGE_FLAGS |
+ CAPABILITY_EXTRACT_PART);
+}
+
+
// Service infos