From d9e9b3e687989f362ea167cb6b9263ed695838fd Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sat, 12 May 2001 05:01:54 +0000 Subject: [PATCH] IMAP path canonification hack from Brendan Cully. --- muttlib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/muttlib.c b/muttlib.c index 694ff3692..28cc0e3c5 100644 --- a/muttlib.c +++ b/muttlib.c @@ -369,8 +369,10 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) case '+': { #ifdef USE_IMAP - /* special case: folder = {host}: don't append slash */ - if (mx_is_imap (NONULL (Maildir)) && Maildir[strlen (Maildir) - 1] == '}') + /* if folder = {host} or imap[s]://host/: don't append slash */ + if (mx_is_imap (NONULL (Maildir)) && + (Maildir[strlen (Maildir) - 1] == '}' || + Maildir[strlen (Maildir) - 1] == '/')) strfcpy (p, NONULL (Maildir), sizeof (p)); else #endif -- 2.40.0