Displaying 1 result from an estimated 1 matches for "imap_msgpart_find_part".
2016 Dec 27
1
Identify if a message_part is an attachment ?
...mail = index_search_get_mail(ctx)
|_ allocates mail (vfunc mail_alloc) and calls hook.
|_ also allocates index_mails
ret = search_more_with_mail(ctx, mail);
|_ call handler (*h) => fetch_body_msgpart
|_ imap_msgpart_open
|_ imap_msgpart_find_part(mail, msgpart, &part); /* only mail
comes here */
mail (uid=1739, seq=5)
msgpart (section_number = 2,
fetch_type = FETCH_MIME_BODY,
partial_offset = 0, partial_size = 512,
decode_cte_to_binary = 0)
|_ mail_get_parts(mai...