Commit 41a0da7a 41a0da7a22995b23a3fec61d5b87ed880c87fe97 by Sergey Poznyakoff

Fix allowed URL parts for local mailboxes.

Parameters are allowed: they are used to expand hashed or indexed
mailbox names.

* libproto/maildir/folder.c (_maildir_record): Add MU_URL_PARAM.
* libproto/mbox/folder.c (_mbox_record): Likewise.
* libproto/mh/folder.c (_mh_record): Likewise.
1 parent 697384c6
......@@ -99,7 +99,7 @@ static struct _mu_record _maildir_record =
MU_MAILDIR_PRIO,
MU_MAILDIR_SCHEME,
MU_RECORD_LOCAL,
MU_URL_SCHEME | MU_URL_PATH,
MU_URL_SCHEME | MU_URL_PATH | MU_URL_PARAM,
MU_URL_PATH,
mu_url_expand_path, /* Url init. */
_mailbox_maildir_init, /* Mailbox init. */
......
......@@ -101,7 +101,7 @@ static struct _mu_record _mbox_record =
MU_MBOX_PRIO,
MU_MBOX_SCHEME,
MU_RECORD_LOCAL,
MU_URL_SCHEME | MU_URL_PATH,
MU_URL_SCHEME | MU_URL_PATH | MU_URL_PARAM,
MU_URL_PATH,
mu_url_expand_path, /* URL init. */
_mailbox_mbox_init, /* Mailbox init. */
......
......@@ -139,7 +139,7 @@ static struct _mu_record _mh_record =
MU_MH_PRIO,
MU_MH_SCHEME,
MU_RECORD_LOCAL,
MU_URL_SCHEME | MU_URL_PATH,
MU_URL_SCHEME | MU_URL_PATH | MU_URL_PARAM,
MU_URL_PATH,
mu_url_expand_path, /* Url init. */
_mailbox_mh_init, /* Mailbox init. */
......