diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-23 06:04:57 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-23 06:04:57 -0700 |
commit | ce5d78296251b529838df0dbd4dc3b9a90030924 (patch) | |
tree | 241c4497dd9a32bcfd6d9fae4ecaf0d4a455c7af /notmuch.h | |
parent | 6ccdffcd87b8af0c1c683588612169f5dc776644 (diff) |
Fix notmuch_message_get_message_id to never return NULL.
With the recent improvements to the handling of message IDs we
"know" that a NULL message ID is impossible, (so we simply
abort if the impossible happens).
Diffstat (limited to 'notmuch.h')
-rw-r--r-- | notmuch.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -338,6 +338,10 @@ notmuch_results_destroy (notmuch_results_t *results); * modified by the caller and will only be valid for as long as the * message is valid, (which is until the query from which it derived * is destroyed). + * + * This function will not return NULL since Notmuch ensures that every + * message has a unique message ID, (Notmuch will generate an ID for a + * message if the original file does not contain one). */ const char * notmuch_message_get_message_id (notmuch_message_t *message); |