aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/messaging/maildirStore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/messaging/maildirStore.cpp b/src/messaging/maildirStore.cpp
index 60cac982..2f737622 100644
--- a/src/messaging/maildirStore.cpp
+++ b/src/messaging/maildirStore.cpp
@@ -78,7 +78,8 @@ folder* maildirStore::getFolder(const folder::path& path)
const bool maildirStore::isValidFolderName(const folder::path::component& name)
{
return (platformDependant::getHandler()->
- getFileSystemFactory()->isValidPathComponent(name));
+ getFileSystemFactory()->isValidPathComponent(name) &&
+ name.getBuffer().find_first_of(".") == string::npos);
}