diff options
author | Vincent Richard <[email protected]> | 2004-12-17 16:23:40 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-12-17 16:23:40 +0000 |
commit | 36f1ac2922e464256aeb69c123351863a4c6a621 (patch) | |
tree | c08386234d550ef8e8d7a3982cb7407cc5f61ff8 | |
parent | Updated function doc. (diff) | |
download | vmime-36f1ac2922e464256aeb69c123351863a4c6a621.tar.gz vmime-36f1ac2922e464256aeb69c123351863a4c6a621.zip |
Folder names can not contain '.' in maildirStore::isValidFolderName().
-rw-r--r-- | src/messaging/maildirStore.cpp | 3 |
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); } |