Change handling of URL query part.
Queries are now parsed into arguments and returned as arrays of arguments. * libproto/include/url0.h (struct _mu_url): Replace query with array of query arguments. * include/mailutils/url.h (mu_url_dup): New proto. (mu_url_get_query): Remove. (mu_url_sget_query, mu_url_aget_query): Return query split into arguments. (mu_url_set_scheme): New function. (mu_url_decode_len): New function. * mailbox/url.c (mu_url_dup): New function. (mu_url_get_query): Remove. (mu_url_sget_query, mu_url_aget_query): Return query split into arguments. (mu_url_set_scheme): New function. (mu_url_decode_len): New function. * libproto/remote/mbox.c (remote_mbox_init): Use parsed out URL, instead of the full URL string. * examples/url-parse.c: Change query output. * mailbox/testsuite/Urls: Reflect changes to url-parse. Add new testcases. * libproto/imap/url.c, libproto/pop/url.c: Reflect changes to URL functions.
Showing
8 changed files
with
303 additions
and
104 deletions
-
Please register or sign in to post a comment