Commit 49ccc8fd authored by Richard Curnow's avatar Richard Curnow

Fix checking of '.' at start of mfolder.

Original rev  : rc@rc0.org.uk--2004-mairix/mairix--dev--0.16--patch-27

To specify an mfolder relative to the CWD, we require the mfolder to start
"./".  Previously the code was only checking if it started with ".".  This
failed if the user wanted an mfolder under the base directory with a "." at the
beginning.
parent 83219396
......@@ -579,7 +579,8 @@ int main (int argc, char **argv)/*{{{*/
/* complete_mfolder is needed by search_top() and member_of() so
compute it once here rather than in search_top() as well */
if ((mfolder[0] == '/') || (mfolder[0] == '.')) {
if ((mfolder[0] == '/') ||
((mfolder[0] == '.') && (mfolder[1] == '/'))) {
complete_mfolder = new_string(mfolder);
} else {
len = strlen(folder_base) + strlen(mfolder) + 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment