Lines Matching defs:url
25 #include "imap-url.h"
26 #include "imap-msgpart-url.h"
66 struct imap_msgpart_url *url;
131 if (client->url != NULL) {
224 if (client->url != NULL) {
225 /* deinitialize url */
229 i_assert(client->url == NULL);
288 imap_msgpart_url_free(&client->url);
294 imap_msgpart_url_free(&client->url);
333 client_fetch_urlpart(struct client *client, const char *url,
347 ret = imap_urlauth_fetch(client->urlauth_ctx, url,
348 &client->url, &error_code, &error);
353 url, error);
364 imap_msgpart_url_set_decode_to_binary(client->url);
366 ret = imap_msgpart_url_get_bodypartstructure(client->url,
370 "Failed to read URLAUTH \"%s\": %s", url, error);
380 ret = imap_msgpart_url_read_part(client->url, &mpresult, &error);
383 "Failed to read URLAUTH \"%s\": %s", url, error);
395 static int client_fetch_url(struct client *client, const char *url,
403 i_assert(client->url == NULL);
409 i_debug("Fetching URLAUTH %s", url);
412 ret = client_fetch_urlpart(client, url, url_flags, &bpstruct,
416 if (client->url != NULL)
417 imap_msgpart_url_free(&client->url);
454 imap_msgpart_url_free(&client->url);
455 client->url = NULL;
476 if (client->url != NULL) {
482 return client->url != NULL ? 0 : 1;
493 /* "URL"["\tbody"]["\tbinary"]["\tbpstruct"]"\t"<url>:
497 const char *url;
504 url = *args;
522 ret = client_fetch_url(client, url, url_flags);
664 if (client->url != NULL) {
731 if (client->url != NULL) {
737 if (client->url == NULL && client->waiting_input) {
745 if (client->url != NULL) {
746 /* url not finished yet */