Commit 6a8d3bcb 6a8d3bcbd7b0cf43ef80e83bf9550ad167a9cb58 by Sergey Poznyakoff

(mh_expand_name): Accept names starting with mh:/ protocol indicator.

1 parent b111a6cc
...@@ -422,7 +422,9 @@ mh_expand_name (const char *base, const char *name, int is_folder) ...@@ -422,7 +422,9 @@ mh_expand_name (const char *base, const char *name, int is_folder)
422 422
423 if (is_folder) 423 if (is_folder)
424 { 424 {
425 if (namep[0] == '/') 425 if (memcmp (namep, "mh:/", 4) == 0)
426 return namep;
427 else if (namep[0] == '/')
426 asprintf (&p, "mh:%s", namep); 428 asprintf (&p, "mh:%s", namep);
427 else 429 else
428 asprintf (&p, "mh:%s/%s", base ? base : mu_folder_directory (), namep); 430 asprintf (&p, "mh:%s/%s", base ? base : mu_folder_directory (), namep);
......