Commit 2c419ba0 2c419ba0d194b5b00e6c2e3deae15cb593c8569d by Sergey Poznyakoff

Compatibility fix.

* libmailutils/mailbox/mbx_default.c (mu_normalize_mailbox_url):
Append ${user} if URL ends with user=$user.  Fixes 131ddb25.
1 parent 18bc3599
......@@ -62,9 +62,7 @@ mu_normalize_mailbox_url (char **pout, const char *dir)
len = strlen (dir);
if (dir[len-1] == '=')
{
if (len > 5 && strcmp (dir + len - 5, "user=") == 0)
*pout = strdup (dir);
else
if (!(len > 5 && strcmp (dir + len - 5, "user=") == 0))
return MU_ERR_BAD_FILENAME;
}
else
......