X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=util%2Fgmime-extra.h;h=b0c8d3d84a07429a44d84c5c7f1c03780b3bee51;hb=eea09ee15348992685e4c5b329303b6bae3b0cac;hp=a183952d24c07e8933fdbfc5705401619059c714;hpb=38240aafac531e350f6819103cd1d974d4c75d47;p=notmuch diff --git a/util/gmime-extra.h b/util/gmime-extra.h index a183952d..b0c8d3d8 100644 --- a/util/gmime-extra.h +++ b/util/gmime-extra.h @@ -9,18 +9,13 @@ extern "C" { GMimeStream *g_mime_stream_stdout_new(void); -#define g_mime_content_type_to_string(c) g_mime_content_type_get_mime_type (c) -#define g_mime_filter_crlf_new(encode,dots) g_mime_filter_dos2unix_new (FALSE) -#define g_mime_message_add_recipient(m,t,n,a) g_mime_message_add_mailbox (m,t,n,a) -#define g_mime_message_set_subject(m,s) g_mime_message_set_subject(m,s,NULL) -#define g_mime_multipart_signed_verify(mps,ctx,err) g_mime_multipart_signed_verify(mps, GMIME_ENCRYPT_NONE, err) -#define g_mime_object_write_to_stream(o,s) g_mime_object_write_to_stream (o,NULL,s) -#define g_mime_object_set_header(o,h,v) g_mime_object_set_header (o,h,v,NULL) -#define g_mime_parser_construct_message(p) g_mime_parser_construct_message (p, g_mime_parser_options_get_default ()) -#define g_mime_part_get_content_object(p) g_mime_part_get_content (p) -#define g_mime_utils_header_decode_text(txt) g_mime_utils_header_decode_text (NULL, txt) -#define internet_address_to_string(ia,encode) internet_address_to_string (ia,NULL,encode) -#define internet_address_list_parse_string(str) internet_address_list_parse (NULL,str) +/* Return a GMime stream for this open file descriptor, un-gzipping if + * necessary */ +GMimeStream *g_mime_stream_gzfile_new (int fd); + +/* Return a GMime stream for this path, un-gzipping if + * necessary */ +GMimeStream *g_mime_stream_gzfile_open (const char *filename); /** * Get last 16 hex digits of fingerprint ("keyid")