]> git.notmuchmail.org Git - notmuch/blob - util/gmime-extra.h
gmime-cleanup: pass NULL as default GMimeParserOptions
[notmuch] / util / gmime-extra.h
1 #ifndef _GMIME_EXTRA_H
2 #define _GMIME_EXTRA_H
3 #include <gmime/gmime.h>
4 #include <talloc.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 GMimeStream *g_mime_stream_stdout_new(void);
11
12 /**
13  * Get last 16 hex digits of fingerprint ("keyid")
14  */
15 const char *g_mime_certificate_get_fpr16 (GMimeCertificate *cert);
16 /**
17  * Return the contents of the appropriate address header as a string
18  * Should be freed using g_free
19  */
20 char *g_mime_message_get_address_string (GMimeMessage *message, GMimeAddressType type);
21
22 InternetAddressList * g_mime_message_get_addresses (GMimeMessage *message, GMimeAddressType type);
23
24 /**
25  * return talloc allocated date string
26  */
27
28 char *g_mime_message_get_date_string (void *ctx, GMimeMessage *message);
29
30 /**
31  * glib allocated list of From: addresses
32  */
33
34 InternetAddressList * g_mime_message_get_from (GMimeMessage *message);
35
36
37 /**
38  * return string for From: address
39  * (owned by gmime)
40  */
41 const char * g_mime_message_get_from_string (GMimeMessage *message);
42
43 InternetAddressList * g_mime_message_get_reply_to_list (GMimeMessage *message);
44
45 /**
46  * return talloc allocated reply-to string
47  */
48 char * g_mime_message_get_reply_to_string (void *ctx, GMimeMessage *message);
49
50 void g_mime_parser_set_scan_from (GMimeParser *parser, gboolean flag);
51
52 gboolean g_mime_signature_status_good (GMimeSignatureStatus status);
53
54 gboolean g_mime_signature_status_bad (GMimeSignatureStatus status);
55
56 gboolean g_mime_signature_status_error (GMimeSignatureStatus status);
57
58 gint64 g_mime_utils_header_decode_date_unix (const char *date);
59
60 /**
61  * Return string for valid User ID (or NULL if no valid User ID exists)
62  */
63 const char * g_mime_certificate_get_valid_userid (GMimeCertificate *cert);
64
65 #ifdef __cplusplus
66 }
67 #endif
68
69 #endif