aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-10-05 16:33:54 +0000
committerVincent Richard <[email protected]>2004-10-05 16:33:54 +0000
commit0967d3ef5b5137338c37a65181e33ed53525b78b (patch)
tree484099a61052641120a75560f18f0d046c099cf8
parentAdded "examples/common.inc" file that was ommited during initial import. (diff)
downloadvmime-0967d3ef5b5137338c37a65181e33ed53525b78b.tar.gz
vmime-0967d3ef5b5137338c37a65181e33ed53525b78b.zip
Changed meaning of "path" portion in a URL. This does not specify the root path for "maildir" protocol anymore; instead the "server.rootpath" property is used. The "path" portion can be used to point a specific folder into a mail store (empty = root folder).
-rw-r--r--src/messaging/maildirStore.cpp6
-rw-r--r--src/messaging/serviceFactory.cpp5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/messaging/maildirStore.cpp b/src/messaging/maildirStore.cpp
index 2e125109..520e6bbb 100644
--- a/src/messaging/maildirStore.cpp
+++ b/src/messaging/maildirStore.cpp
@@ -80,8 +80,8 @@ void maildirStore::connect()
if (isConnected())
throw exceptions::already_connected();
- m_fsPath = platformDependant::getHandler()->getFileSystemFactory()->stringToPath
- (session().properties()[infos().propertyPrefix() + "server.path"]);
+ m_fsPath = platformDependant::getHandler()->getFileSystemFactory()->
+ stringToPath(session().properties()[infos().propertyPrefix() + "server.rootpath"]);
m_connected = true;
}
@@ -155,7 +155,7 @@ const std::vector <string> maildirStore::_infos::availableProperties() const
{
std::vector <string> list;
- list.push_back("server.path");
+ list.push_back("server.rootpath");
return (list);
}
diff --git a/src/messaging/serviceFactory.cpp b/src/messaging/serviceFactory.cpp
index 09bced01..35ff3a98 100644
--- a/src/messaging/serviceFactory.cpp
+++ b/src/messaging/serviceFactory.cpp
@@ -69,8 +69,9 @@ service* serviceFactory::create
if (u.port() != url::UNSPECIFIED_PORT)
sess.properties()[serv->infos().propertyPrefix() + "server.port"] = u.port();
- if (!u.path().empty())
- sess.properties()[serv->infos().propertyPrefix() + "server.path"] = u.path();
+ // Path portion of the URL is used to point a specific folder (empty = root)
+ //if (!u.path().empty())
+ // sess.properties()[serv->infos().propertyPrefix() + "server.path"] = u.path();
if (!u.username().empty())
{