mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
Add _notmuch_message_get_in_reply_to.
The existing notmuch_message_get_header is *almost* good enough for this, except that we also need to remove the '<' and '>' delimiters. We'll probably want to implement this function with database storage in the future rather than loading the email message.
This commit is contained in:
parent
b97756926f
commit
d136a1e2cf
2 changed files with 15 additions and 0 deletions
|
@ -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);
|
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 *
|
const char *
|
||||||
notmuch_message_get_thread_id (notmuch_message_t *message)
|
notmuch_message_get_thread_id (notmuch_message_t *message)
|
||||||
{
|
{
|
||||||
|
|
|
@ -172,6 +172,9 @@ _notmuch_message_create_for_message_id (const void *talloc_owner,
|
||||||
const char *message_id,
|
const char *message_id,
|
||||||
notmuch_private_status_t *status);
|
notmuch_private_status_t *status);
|
||||||
|
|
||||||
|
const char *
|
||||||
|
_notmuch_message_get_in_reply_to (notmuch_message_t *message);
|
||||||
|
|
||||||
notmuch_private_status_t
|
notmuch_private_status_t
|
||||||
_notmuch_message_add_term (notmuch_message_t *message,
|
_notmuch_message_add_term (notmuch_message_t *message,
|
||||||
const char *prefix_name,
|
const char *prefix_name,
|
||||||
|
|
Loading…
Reference in a new issue