unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 889e91f3e8c0e000ec9ab3660851a755ce9d2507 2164 bytes (raw)
name: util/gmime-extra.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
 
#ifndef _GMIME_EXTRA_H
#define _GMIME_EXTRA_H
#include <gmime/gmime.h>
#include <talloc.h>

#ifdef __cplusplus
extern "C" {
#endif

GMimeStream *g_mime_stream_stdout_new (void);

/* 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")
 */
const char *g_mime_certificate_get_fpr16 (GMimeCertificate *cert);
/**
 * Return the contents of the appropriate address header as a string
 * Should be freed using g_free
 */
char *g_mime_message_get_address_string (GMimeMessage *message, GMimeAddressType type);

InternetAddressList *g_mime_message_get_addresses (GMimeMessage *message, GMimeAddressType type);

/**
 * return talloc allocated date string
 */

char *g_mime_message_get_date_string (void *ctx, GMimeMessage *message);

/**
 * glib allocated list of From: addresses
 */

InternetAddressList *g_mime_message_get_from (GMimeMessage *message);


/**
 * return string for From: address
 * (owned by gmime)
 */
const char *g_mime_message_get_from_string (GMimeMessage *message);

InternetAddressList *g_mime_message_get_reply_to_list (GMimeMessage *message);

/**
 * return talloc allocated reply-to string
 */
char *g_mime_message_get_reply_to_string (void *ctx, GMimeMessage *message);

void g_mime_parser_set_scan_from (GMimeParser *parser, gboolean flag);

gboolean g_mime_signature_status_good (GMimeSignatureStatus status);

gboolean g_mime_signature_status_bad (GMimeSignatureStatus status);

gboolean g_mime_signature_status_error (GMimeSignatureStatus status);

gint64 g_mime_utils_header_decode_date_unix (const char *date);

/**
 * Return string for valid User ID (or NULL if no valid User ID exists)
 */
const char *g_mime_certificate_get_valid_userid (GMimeCertificate *cert);
/**
 * Return string for valid e-mail address (or NULL if no valid e-mail address exists)
 */
const char *g_mime_certificate_get_valid_email (GMimeCertificate *cert);

#ifdef __cplusplus
}
#endif

#endif

debug log:

solving 889e91f3 ...
found 889e91f3 in https://yhetil.org/notmuch.git/

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).