X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fmessage.cc;h=b9f998c5f7e9f6bd7c75f01e8bf337fdb15add14;hb=d136a1e2cffe954d83495c0f8e45d5ce97583e90;hp=28f19a88502dc79ff29210297abfbed4f5ef2562;hpb=b97756926f3bb9f940e8d6a9724c02a29f40f128;p=notmuch diff --git a/lib/message.cc b/lib/message.cc index 28f19a88..b9f998c5 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -259,6 +259,18 @@ notmuch_message_get_header (notmuch_message_t *message, const char *header) return notmuch_message_file_get_header (message->message_file, header); } +/* XXX: We probably want to store the In-Reply-To header in the + * database (separate from the References message IDs) so that we can + * fetch it out again without having to go load the message file. */ +const char * +_notmuch_message_get_in_reply_to (notmuch_message_t *message) +{ + return _parse_message_id (message, + notmuch_message_get_header (message, + "in-reply-to"), + NULL); +} + const char * notmuch_message_get_thread_id (notmuch_message_t *message) {