X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=6036ce4a63a023399340d6d91c355b785744a38c;hp=bb1f235e0024d7f4ef15daededfc9ecc26031d2e;hb=8e95cf42324809d34638cdb29fb650cce0efad87;hpb=d3349358c6a5048559bd2a4faebe476ebd222170 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index bb1f235e..6036ce4a 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -147,6 +147,9 @@ typedef enum _notmuch_private_status { const char * _find_prefix (const char *name); +char * +_parse_message_id (void *ctx, const char *message_id, const char **next); + /* thread.cc */ notmuch_thread_t * @@ -170,7 +173,7 @@ _notmuch_message_create_for_message_id (const void *talloc_owner, notmuch_private_status_t *status); const char * -_notmuch_message_get_subject (notmuch_message_t *message); +_notmuch_message_get_in_reply_to (notmuch_message_t *message); notmuch_private_status_t _notmuch_message_add_term (notmuch_message_t *message, @@ -277,12 +280,35 @@ notmuch_message_file_get_header (notmuch_message_file_t *message, /* messages.c */ +typedef struct _notmuch_message_node { + notmuch_message_t *message; + struct _notmuch_message_node *next; +} notmuch_message_node_t; + +typedef struct _notmuch_message_list { + notmuch_message_node_t *head; + notmuch_message_node_t **tail; +} notmuch_message_list_t; + +notmuch_message_list_t * +_notmuch_message_list_create (const void *ctx); + +void +_notmuch_message_list_append (notmuch_message_list_t *list, + notmuch_message_node_t *node); + +void +_notmuch_message_list_add_message (notmuch_message_list_t *list, + notmuch_message_t *message); + notmuch_messages_t * -_notmuch_messages_create (void *ctx); +_notmuch_messages_create (notmuch_message_list_t *list); + +/* message.cc */ void -_notmuch_messages_add_message (notmuch_messages_t *messages, - notmuch_message_t *message); +_notmuch_message_add_reply (notmuch_message_t *message, + notmuch_message_node_t *reply); /* date.c */