commit cf6ccd90f9a09193ab5c2ca434b62e1294cc68ef
parent e127d54b0822e38a97e161caffbf5d52bf5a581e
Author: andreaha <andreaha@b31fe1f4-c0d1-0310-8000-a34f4ae90293>
Date: Sat, 21 Feb 2004 10:52:00 +0000
- Removed debug output.
git-svn-id: file:///home/cwright/convert/bincimap/trunk@48 b31fe1f4-c0d1-0310-8000-a34f4ae90293
Diffstat:
4 files changed, 1 insertion(+), 34 deletions(-)
diff --git a/src/argparser.cc b/src/argparser.cc
@@ -237,12 +237,6 @@ bool CommandLineArgs::parse(int argc, char *argv[])
if (ac == -1)
ac = argc;
- map<string, string>::const_iterator it2 = args.begin();
- for (; it2 != args.end(); ++it2) {
- string s = it2->first + " => " + it2->second;
- write(666, s.c_str(), s.length());
- }
-
return true;
}
diff --git a/src/session-initialize-bincimap-up.cc b/src/session-initialize-bincimap-up.cc
@@ -113,15 +113,9 @@ bool Session::initialize(int argc, char *argv[])
// try to read global settings.
Storage gconfig(configfile, Storage::ReadOnly);
string section, key, value;
- while (gconfig.get(§ion, &key, &value)) {
+ while (gconfig.get(§ion, &key, &value))
session.globalconfig[section][key] = value;
- {
- string tmp = section + "::" + key + "=" + value;
- write(667, tmp.c_str(), tmp.length());
- }
- }
-
if (!gconfig.eof()) {
logger << "error reading Binc IMAP's config file "
<< configfile << ". Default values will be used instead: "
diff --git a/src/session-initialize-bincimapd.cc b/src/session-initialize-bincimapd.cc
@@ -170,9 +170,6 @@ bool Session::initialize(int argc, char *argv[])
while (lconfig.get(§ion, &key, &value))
session.localconfig[section][key] = value;
- write(669, session.globalconfig["Mailbox"]["path"].c_str(),
- session.globalconfig["Mailbox"]["path"].length());
-
string tmp;
if ((tmp = session.localconfig["Mailbox"]["depot"]) != "")
session.globalconfig["Mailbox"]["depot"] = tmp;
@@ -225,10 +222,6 @@ bool Session::initialize(int argc, char *argv[])
brokerfactory.assign("UNSUBSCRIBE", new UnsubscribeOperator());
string path = session.globalconfig["Mailbox"]["path"];
-
- write (668, path.c_str(), path.length());
-
-
if (path == "") path = ".";
else if (chdir(path.c_str()) != 0) {
mkdir(path.c_str(), 0777);
diff --git a/src/session.cc b/src/session.cc
@@ -382,20 +382,6 @@ void Session::importFromEnv(void)
++cnt;
}
-
- map<string, map<string, string> >::const_iterator it = globalconfig.begin();
- for (; it != globalconfig.end(); ++it) {
- string section = it->first;
- map<string, string>::const_iterator jt = it->second.begin();
- for (; jt != it->second.end(); ++jt) {
- string key = jt->first;
- string value = jt->second;
- string tmp = section + "::" + key + "=" + value;
- write(667, tmp.c_str(), tmp.length());
- }
- }
-
-
}
//----------------------------------------------------------------------