Lines Matching defs:url
9 #include "imap-url.h"
11 #include "imap-msgpart-url.h"
33 int imap_msgpart_url_create(struct mail_user *user, const struct imap_url *url,
37 const char *section = url->section == NULL ? "" : url->section;
41 if (url->mailbox == NULL || url->uid == 0 ||
42 url->search_program != NULL) {
54 mpurl->mailbox = i_strdup(url->mailbox);
55 mpurl->uidvalidity = url->uidvalidity;
56 mpurl->uid = url->uid;
57 if (url->section != NULL)
58 mpurl->section = i_strdup(url->section);
59 mpurl->partial_offset = url->partial_offset;
60 mpurl->partial_size = url->partial_size;
62 imap_msgpart_set_partial(msgpart, url->partial_offset,
63 url->partial_size == 0 ?
64 (uoff_t)-1 : url->partial_size);
75 struct imap_url base_url, *url;
78 /* build base url */
87 /* parse url */
89 IMAP_URL_PARSE_REQUIRE_RELATIVE, &url, &error) < 0) {
93 if (url->mailbox == NULL) {
97 if (imap_msgpart_url_create(user, url, mpurl_r, error_r) < 0)