]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
Avoid database corruption by not adding partially-constructed mail documents.
[notmuch] / lib / notmuch-private.h
index 6e83cc376c2588ea842967fd9bd5b730dc052bbf..f9774a4853e6dd561cbefe60bb0beaa44b852c12 100644 (file)
@@ -167,6 +167,9 @@ _notmuch_database_split_path (void *ctx,
 const char *
 _notmuch_database_get_directory_db_path (const char *path);
 
+unsigned int
+_notmuch_database_generate_doc_id (notmuch_database_t *notmuch);
+
 notmuch_private_status_t
 _notmuch_database_find_unique_doc_id (notmuch_database_t *notmuch,
                                      const char *prefix_name,
@@ -344,6 +347,9 @@ notmuch_message_file_restrict_headersv (notmuch_message_file_t *message,
  *
  * The header name is case insensitive.
  *
+ * The Received: header is special - for it all Received: headers in
+ * the message are concatenated
+ *
  * The returned value is owned by the notmuch message and is valid
  * only until the message is closed. The caller should copy it if
  * needing to modify the value or to hold onto it for longer.