X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=9957164dd9022dc49ff8e050a2830671b79fbd92;hb=2f94b3090c03bb56b43c4adfb94f7eeb28a6bf18;hp=5dfebf5dfd0d3a34f2953bbec90aca1dc74e3a29;hpb=95b52e85b2deae449b71794b0d74e6c677516e12;p=notmuch diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 5dfebf5d..9957164d 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -492,6 +492,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 */