mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
e9b870b692
This is a functional change, not a straight translation, because we are no longer directly invoking g_mime_parser_options_get_default(), but the GMime source has indicated that the options parameter for g_mime_parser_construct_message() is "nullable" since upstream commit d0ebdd2ea3e6fa635a2a551c846e9bc8b6040353 (which itself precedes GMime 3.0). Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
69 lines
1.7 KiB
C
69 lines
1.7 KiB
C
#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);
|
|
|
|
/**
|
|
* 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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|