On Thu, 18 Sep 2003, Andreas Aardal Hanssen wrote:
>Yes, it does. :) I'd like you to try the following patch, and see if it
>solves the problem:
The former patch uncovered an error with extracting unique names from
files that erroneously contain more than one ':', and the following patch
fixed that problem.
This will probably not be a problem for most users.
Andy
--- src/maildir-scan.cc 18 Aug 2003 18:06:05 -0000 1.1.1.1
+++ src/maildir-scan.cc 18 Sep 2003 05:28:17 -0000
@@ -309,9 +309,13 @@
string uniquename;
string standard;
string::size_type pos;
- if ((pos = filename.find(":2,")) != string::npos) {
- standard = filename.substr(pos + 2);
+ if ((pos = filename.find(':')) != string::npos) {
uniquename = filename.substr(0, pos);
+
+ string tmp = filename.substr(pos);
+ if ((pos = tmp.find("2,")) != string::npos)
+ standard = tmp.substr(pos + 2);
+
} else
uniquename = filename;