Honor MAIL and FOLDER envars if _mu_mailbox_pattern is not set.
The _mu_mailbox_pattern variable is supposed to be set only from configuration file. However, the mu_mailbox_url function would also set it as a side effect. This produced strange results; in particular unsetting HOME variable caused mail utilities to ignore MAIL variable as well (as reported by Dan Jacobson on 2015-04-30, <87vbgemcc7.fsf@jidanni.org>). * configure.ac (MU_PATH_MAILDIR): Don't end with a slash. * libmailutils/mailbox/mbx_default.c (mu_normalize_mailbox_url): Use mu_make_file_name. (mu_mailbox_url): Don't set _mu_mailbox_pattern.
Showing
2 changed files
with
14 additions
and
30 deletions
-
Please register or sign in to post a comment