X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=57c6163918bb59ab236163dbd65eb3faf15113cd;hb=411675a6ce78988157c4a078f504b3b7805e54c6;hp=5dfebf5dfd0d3a34f2953bbec90aca1dc74e3a29;hpb=cbb2d5608ef6dd54d6e9e19b2bb570d3fe54b28b;p=notmuch diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 5dfebf5d..57c61639 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -425,6 +425,17 @@ const char * _notmuch_message_file_get_header (notmuch_message_file_t *message, const char *header); +notmuch_status_t +_notmuch_message_file_get_headers (notmuch_message_file_t *message_file, + const char **from_out, + const char **subject_out, + const char **to_out, + const char **date_out, + char **message_id_out); + +const char * +_notmuch_message_file_get_filename (notmuch_message_file_t *message); + /* index.cc */ notmuch_status_t @@ -492,6 +503,20 @@ notmuch_status_t _notmuch_query_count_documents (notmuch_query_t *query, const char *type, unsigned *count_out); +/* message-id.c */ + +/* Parse an RFC 822 message-id, discarding whitespace, any RFC 822 + * comments, and the '<' and '>' delimiters. + * + * If not NULL, then *next will be made to point to the first character + * not parsed, (possibly pointing to the final '\0' terminator. + * + * Returns a newly talloc'ed string belonging to 'ctx'. + * + * Returns NULL if there is any error parsing the message-id. */ +char * +_notmuch_message_id_parse (void *ctx, const char *message_id, const char **next); + /* message.cc */