Add cachedir variable allowing to move all data directories by setting a single value. Closes issue #270

This commit is contained in:
Jean-Francois Dockes
2016-04-08 15:09:15 +02:00
parent b995cfb4e8
commit f3820471e4
7 changed files with 110 additions and 41 deletions
+1 -7
View File
@@ -196,13 +196,7 @@ public:
}
m_minfsize = minmbs * 1000 * 1000;
config->getConfParam("mboxcachedir", m_dir);
if (m_dir.empty())
m_dir = "mboxcache";
m_dir = path_tildexpand(m_dir);
// If not an absolute path, compute relative to config dir
if (!path_isabsolute(m_dir))
m_dir = path_cat(config->getConfDir(), m_dir);
m_dir = config->getMboxcacheDir();
m_ok = true;
}
return m_ok;