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 = ...@@ -99,7 +99,7 @@ static struct _mu_record _maildir_record =
99 MU_MAILDIR_PRIO, 99 MU_MAILDIR_PRIO,
100 MU_MAILDIR_SCHEME, 100 MU_MAILDIR_SCHEME,
101 MU_RECORD_LOCAL, 101 MU_RECORD_LOCAL,
102 MU_URL_SCHEME | MU_URL_PATH, 102 MU_URL_SCHEME | MU_URL_PATH | MU_URL_PARAM,
103 MU_URL_PATH, 103 MU_URL_PATH,
104 mu_url_expand_path, /* Url init. */ 104 mu_url_expand_path, /* Url init. */
105 _mailbox_maildir_init, /* Mailbox init. */ 105 _mailbox_maildir_init, /* Mailbox init. */
......
...@@ -101,7 +101,7 @@ static struct _mu_record _mbox_record = ...@@ -101,7 +101,7 @@ static struct _mu_record _mbox_record =
101 MU_MBOX_PRIO, 101 MU_MBOX_PRIO,
102 MU_MBOX_SCHEME, 102 MU_MBOX_SCHEME,
103 MU_RECORD_LOCAL, 103 MU_RECORD_LOCAL,
104 MU_URL_SCHEME | MU_URL_PATH, 104 MU_URL_SCHEME | MU_URL_PATH | MU_URL_PARAM,
105 MU_URL_PATH, 105 MU_URL_PATH,
106 mu_url_expand_path, /* URL init. */ 106 mu_url_expand_path, /* URL init. */
107 _mailbox_mbox_init, /* Mailbox init. */ 107 _mailbox_mbox_init, /* Mailbox init. */
......
...@@ -139,7 +139,7 @@ static struct _mu_record _mh_record = ...@@ -139,7 +139,7 @@ static struct _mu_record _mh_record =
139 MU_MH_PRIO, 139 MU_MH_PRIO,
140 MU_MH_SCHEME, 140 MU_MH_SCHEME,
141 MU_RECORD_LOCAL, 141 MU_RECORD_LOCAL,
142 MU_URL_SCHEME | MU_URL_PATH, 142 MU_URL_SCHEME | MU_URL_PATH | MU_URL_PARAM,
143 MU_URL_PATH, 143 MU_URL_PATH,
144 mu_url_expand_path, /* Url init. */ 144 mu_url_expand_path, /* Url init. */
145 _mailbox_mh_init, /* Mailbox init. */ 145 _mailbox_mh_init, /* Mailbox init. */
......