(mh_expand_name): Accept names starting with mh:/ protocol indicator.
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment