commit 32d10d92a2df41bd7c02d207b0b6a3739e1ec416
parent d7be2b56ec64cf5317fd989d22b7fbd8aeded82a
Author: andreaha <andreaha@b31fe1f4-c0d1-0310-8000-a34f4ae90293>
Date: Sat, 21 Feb 2004 10:16:44 +0000
- The magic "." mailbox with IMAPdir is now skipped.
git-svn-id: file:///home/cwright/convert/bincimap/trunk@43 b31fe1f4-c0d1-0310-8000-a34f4ae90293
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/bincimap.spec.in b/bincimap.spec.in
@@ -194,6 +194,7 @@ install man/bincimap.conf.5 $MAN/man5
- Fixes to the prioritization of default args over command line options.
- Fixes to configure.in allow correct handling of --with-openssl-libs
option.
+- The magic "." mailbox with IMAPdir is now skipped.
* Tue Feb 10 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org>
- Replaced command line parser, as a first step towards completely
diff --git a/src/depot.cc b/src/depot.cc
@@ -558,6 +558,10 @@ string IMAPdirDepot::filenameToMailbox(const string &m) const
string tmp;
bool escape = false;
+ // hide the magic "." mailbox.
+ if (m == "." || m == "..")
+ return "";
+
string::const_iterator i = m.begin();
while (i != m.end()) {
if (*i == '.') {