mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-05 16:21:44 +01:00
lib: Fix internal documentation of _notmuch_database_link_message
This function was recently modified, (to include a metadata lookup for a message's thread ID before looking for parent/child thread IDs), but the documentation wasn't updated. Fix that.
This commit is contained in:
parent
5c20bdf035
commit
f8dc5c08e4
1 changed files with 17 additions and 8 deletions
|
@ -1348,18 +1348,27 @@ _notmuch_database_link_message_to_children (notmuch_database_t *notmuch,
|
||||||
/* Given a (mostly empty) 'message' and its corresponding
|
/* Given a (mostly empty) 'message' and its corresponding
|
||||||
* 'message_file' link it to existing threads in the database.
|
* 'message_file' link it to existing threads in the database.
|
||||||
*
|
*
|
||||||
* We first look at 'message_file' and its link-relevant headers
|
* The first check is in the metadata of the database to see if we
|
||||||
* (References and In-Reply-To) for message IDs. We also look in the
|
* have pre-allocated a thread_id in advance for this message, (which
|
||||||
* database for existing message that reference 'message'. In either
|
* would have happened if a message was previously added that
|
||||||
* case, we will assign to the current message the first thread_id
|
* referenced this one).
|
||||||
|
*
|
||||||
|
* Second, we look at 'message_file' and its link-relevant headers
|
||||||
|
* (References and In-Reply-To) for message IDs.
|
||||||
|
*
|
||||||
|
* Finally, we look in the database for existing message that
|
||||||
|
* reference 'message'.
|
||||||
|
*
|
||||||
|
* In all cases, we assign to the current message the first thread_id
|
||||||
* found (through either parent or child). We will also merge any
|
* found (through either parent or child). We will also merge any
|
||||||
* existing, distinct threads where this message belongs to both,
|
* existing, distinct threads where this message belongs to both,
|
||||||
* (which is not uncommon when mesages are processed out of order).
|
* (which is not uncommon when mesages are processed out of order).
|
||||||
*
|
*
|
||||||
* Finally, if not thread ID has been found through parent or child,
|
* Finally, if no thread ID has been found through parent or child, we
|
||||||
* we call _notmuch_message_generate_thread_id to generate a new
|
* call _notmuch_message_generate_thread_id to generate a new thread
|
||||||
* generates a new thread ID if the message doesn't connect to any
|
* ID. This should only happen for new, top-level messages, (no
|
||||||
* existing threads.
|
* References or In-Reply-To header in this message, and no previously
|
||||||
|
* added message refers to this message).
|
||||||
*/
|
*/
|
||||||
static notmuch_status_t
|
static notmuch_status_t
|
||||||
_notmuch_database_link_message (notmuch_database_t *notmuch,
|
_notmuch_database_link_message (notmuch_database_t *notmuch,
|
||||||
|
|
Loading…
Reference in a new issue