Lines Matching defs:url

11 #include "imap-url.h"
12 #include "imap-msgpart-url.h"
20 char *url;
38 char *url;
58 struct imap_urlauth_fetch_url *url, *url_next;
65 i_free_and_null(ufetch->pending_reply.url);
70 url = ufetch->local_urls_head;
71 for (; url != NULL; url = url_next) {
72 url_next = url->next;
73 i_free(url->url);
74 i_free(url);
143 imap_urlauth_fetch_error(struct imap_urlauth_fetch *ufetch, const char *url,
153 reply.url = url;
172 imap_urlauth_fetch_local(struct imap_urlauth_fetch *ufetch, const char *url,
187 i_debug("Fetching local URLAUTH %s", url);
194 ret = imap_urlauth_fetch(ufetch->uctx, url,
203 url, error);
219 ("Failed to read URLAUTH \"%s\": %s", url, error);
235 ("Failed to read URLAUTH \"%s\": %s", url, error);
266 reply.url = url;
300 i_assert(ufetch->pending_reply.url == NULL);
301 ufetch->pending_reply.url = i_strdup(reply->url);
341 int imap_urlauth_fetch_url(struct imap_urlauth_fetch *ufetch, const char *url,
351 /* parse the url */
352 if (imap_url_parse(url, NULL, url_parse_flags, &imap_url, &error) < 0) {
354 "Failed to fetch URLAUTH \"%s\": %s", url, error);
359 imap_urlauth_fetch_error(ufetch, url, url_flags, errormsg);
364 return imap_urlauth_fetch_url_parsed(ufetch, url, imap_url, url_flags);
368 const char *url, struct imap_url *imap_url,
389 url_local->url = i_strdup(url);
395 imap_urlauth_fetch_local(ufetch, url,
402 "Failed to fetch URLAUTH \"%s\": %s", url, error);
405 imap_urlauth_fetch_error(ufetch, url, url_flags, errormsg);
409 /* create request for url */
413 url, url_flags,
428 struct imap_urlauth_fetch_url *url, *url_next;
456 if (ufetch->pending_reply.url != NULL) {
462 reply.url = ufetch->pending_reply.url;
474 if (ufetch->pending_reply.url != NULL)
475 i_free(ufetch->pending_reply.url);
499 url = ufetch->local_urls_head;
500 while (url != NULL) {
501 url_next = url->next;
503 imap_urlauth_fetch_local(ufetch, url->url,
504 url->flags, NULL);
507 &ufetch->local_urls_tail, url);
508 i_free(url->url);
509 i_free(url);
512 url = url_next;