Commit 0b3bc093 authored by Thomas Roessler's avatar Thomas Roessler

Fix 706, 853.

parent 6b7e1f6f
......@@ -56,8 +56,8 @@ int mutt_complete (char *s, size_t slen)
p = NONULL (Maildir);
if (s[1])
{
/* don't append '/' if Maildir/Spoolfile is {host} only */
if (mx_is_imap (NONULL (p)) && p[strlen (p)-1] == '}')
/* don't append '/' if Maildir/Spoolfile is imap://host/ only */
if (mx_is_imap (NONULL (p)) && p[strlen (p)-1] == '/')
snprintf (imap_path, sizeof (imap_path), "%s%s", p, s+1);
else
snprintf (imap_path, sizeof (imap_path), "%s/%s", NONULL (p),
......
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