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).

This commit is contained in:
Vincent Richard 2004-10-05 16:33:54 +00:00
parent 01fc656724
commit 0967d3ef5b
2 changed files with 6 additions and 5 deletions

View File

@ -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);
}

View File

@ -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())
{