Expand description
Not much of an email library, just index and search.
Enums§
- notmuch_
config_ list_ t - notmuch_
database_ mode_ t - Database open mode for
notmuch_database_open. - notmuch_
database_ t - notmuch_
directory_ t - notmuch_
exclude_ t - Exclude values for
notmuch_query_set_omit_excluded - notmuch_
filenames_ t - notmuch_
message_ flag_ t - Message flags.
- notmuch_
message_ properties_ t - notmuch_
message_ t - notmuch_
messages_ t - notmuch_
query_ t - notmuch_
sort_ t - Sort values for
notmuch_query_set_sort. - notmuch_
status_ t - Status codes used for the return values of most functions.
- notmuch_
tags_ t - notmuch_
thread_ t - notmuch_
threads_ t
Constants§
Functions§
- notmuch_
built_ ⚠with - interrogate the library for compile time features
- notmuch_
config_ ⚠list_ destroy - free any resources held by ‘config_list’
- notmuch_
config_ ⚠list_ key - return key for current config pair
- notmuch_
config_ ⚠list_ move_ to_ next - move ‘config_list’ iterator to the next pair
- notmuch_
config_ ⚠list_ valid - Is ‘config_list’ iterator valid (i.e. _key, _value, _move_to_next can be called).
- notmuch_
config_ ⚠list_ value - return ‘value’ for current config pair
- notmuch_
database_ ⚠add_ message - Add a new message to the given notmuch database or associate an additional filename with an existing message.
- notmuch_
database_ ⚠begin_ atomic - Begin an atomic database operation.
- notmuch_
database_ ⚠close - Commit changes and close the given notmuch database.
- notmuch_
database_ ⚠compact - Compact a notmuch database, backing up the original database to the given path.
- notmuch_
database_ ⚠create - Create a new, empty notmuch database located at ‘path’.
- notmuch_
database_ ⚠create_ verbose - Like
notmuch_database_create, except optionally return an error message. This message is allocated by malloc and should be freed by the caller. - notmuch_
database_ ⚠destroy - Destroy the notmuch database, closing it if necessary and freeing all associated resources.
- notmuch_
database_ ⚠end_ atomic - Indicate the end of an atomic database operation.
- notmuch_
database_ ⚠find_ message - Find a message with the given message_id.
- notmuch_
database_ ⚠find_ message_ by_ filename - Find a message with the given filename.
- notmuch_
database_ ⚠get_ all_ tags - Return a list of all tags found in the database.
- notmuch_
database_ ⚠get_ config - retrieve config item ‘key’, assign to ‘value’
- notmuch_
database_ ⚠get_ config_ list - Create an iterator for all config items with keys matching a given prefix
- notmuch_
database_ ⚠get_ directory - Retrieve a directory object from the database for ‘path’.
- notmuch_
database_ ⚠get_ path - Return the database path of the given database.
- notmuch_
database_ ⚠get_ revision - Return the committed database revision and UUID.
- notmuch_
database_ ⚠get_ version - Return the database format version of the given database.
- notmuch_
database_ ⚠needs_ upgrade - Can the database be upgraded to a newer database version?
- notmuch_
database_ ⚠open - Open an existing notmuch database located at ‘path’.
- notmuch_
database_ ⚠open_ verbose - Like notmuch_database_open, except optionally return an error message. This message is allocated by malloc and should be freed by the caller.
- notmuch_
database_ ⚠remove_ message - Remove a message filename from the given notmuch database. If the message has no more filenames, remove the message.
- notmuch_
database_ ⚠set_ config - set config ‘key’ to ‘value’
- notmuch_
database_ ⚠status_ string - Retrieve last status string for given database.
- notmuch_
database_ ⚠upgrade - Upgrade the current database to the latest supported version.
- notmuch_
directory_ ⚠delete - Delete directory document from the database, and destroy the
notmuch_directory_tobject. Assumes any child directories and files have been deleted by the caller. - notmuch_
directory_ ⚠destroy - Destroy a
notmuch_directory_tobject. - notmuch_
directory_ ⚠get_ child_ directories - Get a
notmuch_filenames_titerator listing all the filenames of sub-directories in the database within the given directory. - notmuch_
directory_ ⚠get_ child_ files - Get a
notmuch_filenames_titerator listing all the filenames of messages in the database within the given directory. - notmuch_
directory_ ⚠get_ mtime - Get the mtime of a directory, (as previously stored with
notmuch_directory_set_mtime). - notmuch_
directory_ ⚠set_ mtime - Store an mtime within the database for ‘directory’.
- notmuch_
filenames_ ⚠destroy - Destroy a
notmuch_filenames_tobject. - notmuch_
filenames_ ⚠get - Get the current filename from ‘filenames’ as a string.
- notmuch_
filenames_ ⚠move_ to_ next - Move the ‘filenames’ iterator to the next filename.
- notmuch_
filenames_ ⚠valid - Is the given ‘filenames’ iterator pointing at a valid filename.
- notmuch_
message_ ⚠add_ property - Add a (key,value) pair to a message
- notmuch_
message_ ⚠add_ tag - Add a tag to the given message.
- notmuch_
message_ ⚠destroy - Destroy a
notmuch_message_tobject. - notmuch_
message_ ⚠freeze - Freeze the current state of ‘message’ within the database.
- notmuch_
message_ ⚠get_ date - Get the date of ‘message’ as a time_t value.
- notmuch_
message_ ⚠get_ filename - Get a filename for the email corresponding to ‘message’.
- notmuch_
message_ ⚠get_ filenames - Get all filenames for the email corresponding to ‘message’.
- notmuch_
message_ ⚠get_ flag - Get a value of a flag for the email corresponding to ‘message’.
- notmuch_
message_ ⚠get_ header - Get the value of the specified header from ‘message’ as a UTF-8 string.
- notmuch_
message_ ⚠get_ message_ id - Get the message ID of ‘message’.
- notmuch_
message_ ⚠get_ properties - Get the properties for message, returning a
notmuch_message_properties_tobject which can be used to iterate over all properties. - notmuch_
message_ ⚠get_ property - Retrieve the value for a single property key
- notmuch_
message_ ⚠get_ replies - Get a
notmuch_messages_titerator for all of the replies to ‘message’. - notmuch_
message_ ⚠get_ tags - Get the tags for ‘message’, returning a
notmuch_tags_tobject which can be used to iterate over all tags. - notmuch_
message_ ⚠get_ thread_ id - Get the thread ID of ‘message’.
- notmuch_
message_ ⚠maildir_ flags_ to_ tags - Add/remove tags according to maildir flags in the message filename(s).
- notmuch_
message_ ⚠properties_ destroy - Destroy a
notmuch_message_properties_tobject. - notmuch_
message_ ⚠properties_ key - Return the
keyfrom the current(key,value)pair. - notmuch_
message_ ⚠properties_ move_ to_ next - Move the properties iterator to the next
(key,value)pair - notmuch_
message_ ⚠properties_ valid - Is the given properties iterator pointing at a valid
(key,value)pair. - notmuch_
message_ ⚠properties_ value - Return the
valuefrom the current(key,value)pair. - notmuch_
message_ ⚠remove_ all_ properties - Remove all
(key,value)pairs from the given message. - notmuch_
message_ ⚠remove_ all_ tags - Remove all tags from the given message.
- notmuch_
message_ ⚠remove_ property - Remove a
(key,value)pair from a message. - notmuch_
message_ ⚠remove_ tag - Remove a tag from the given message.
- notmuch_
message_ ⚠set_ flag - Set a value of a flag for the email corresponding to ‘message’.
- notmuch_
message_ ⚠tags_ to_ maildir_ flags - Rename message filename(s) to encode tags as maildir flags.
- notmuch_
message_ ⚠thaw - Thaw the current ‘message’, synchronizing any changes that may have occurred while ‘message’ was frozen into the notmuch database.
- notmuch_
messages_ ⚠collect_ tags - Return a list of tags from all messages.
- notmuch_
messages_ ⚠destroy - Destroy a
notmuch_messages_tobject. - notmuch_
messages_ ⚠get - Get the current message from ‘messages’ as a
notmuch_message_t. - notmuch_
messages_ ⚠move_ to_ next - Move the ‘messages’ iterator to the next message.
- notmuch_
messages_ ⚠valid - Is the given ‘messages’ iterator pointing at a valid message.
- notmuch_
query_ ⚠add_ tag_ exclude - Add a tag that will be excluded from the query results by default. This exclusion will be overridden if this tag appears explicitly in the query.
- notmuch_
query_ ⚠count_ messages_ st - Return the number of messages matching a search.
- notmuch_
query_ ⚠count_ threads_ st - Return the number of threads matching a search.
- notmuch_
query_ ⚠create - Create a new query for ‘database’.
- notmuch_
query_ ⚠destroy - Destroy a
notmuch_query_talong with any associated resources. - notmuch_
query_ ⚠get_ database - Return the notmuch database of this query. See
notmuch_query_create. - notmuch_
query_ ⚠get_ query_ string - Return the query_string of this query. See
notmuch_query_create. - notmuch_
query_ ⚠get_ sort - Return the sort specified for this query. See
notmuch_query_set_sort. - notmuch_
query_ ⚠search_ messages_ st - Execute a query for messages, returning a
notmuch_messages_tobject which can be used to iterate over the results. The returned messages object is owned by the query and as such, will only be valid untilnotmuch_query_destroy. - notmuch_
query_ ⚠search_ threads_ st - Execute a query for threads, returning a
notmuch_threads_tobject which can be used to iterate over the results. The returned threads object is owned by the query and as such, will only be valid untilnotmuch_query_destroy. - notmuch_
query_ ⚠set_ omit_ excluded - Specify whether to omit excluded results or simply flag them. By default, this is set to TRUE.
- notmuch_
query_ ⚠set_ sort - Specify the sorting desired for this query.
- notmuch_
status_ ⚠to_ string - Get a string representation of a
notmuch_status_tvalue. - notmuch_
tags_ ⚠destroy - Destroy a
notmuch_tags_tobject. - notmuch_
tags_ ⚠get - Get the current tag from ‘tags’ as a string.
- notmuch_
tags_ ⚠move_ to_ next - Move the ‘tags’ iterator to the next tag.
- notmuch_
tags_ ⚠valid - Is the given ‘tags’ iterator pointing at a valid tag.
- notmuch_
thread_ ⚠destroy - Destroy a
notmuch_thread_tobject. - notmuch_
thread_ ⚠get_ authors - Get the authors of ‘thread’ as a UTF-8 string.
- notmuch_
thread_ ⚠get_ matched_ messages - Get the number of messages in ‘thread’ that matched the search.
- notmuch_
thread_ ⚠get_ messages - Get a
notmuch_thread_titerator for all messages in ‘thread’ in oldest-first order. - notmuch_
thread_ ⚠get_ newest_ date - Get the date of the newest message in ‘thread’ as a time_t value.
- notmuch_
thread_ ⚠get_ oldest_ date - Get the date of the oldest message in ‘thread’ as a time_t value.
- notmuch_
thread_ ⚠get_ subject - Get the subject of ‘thread’ as a UTF-8 string.
- notmuch_
thread_ ⚠get_ tags - Get the tags for ‘thread’, returning a
notmuch_tags_tobject which can be used to iterate over all tags. - notmuch_
thread_ ⚠get_ thread_ id - Get the thread ID of ‘thread’.
- notmuch_
thread_ ⚠get_ toplevel_ messages - Get a
notmuch_messages_titerator for the top-level messages in ‘thread’ in oldest-first order. - notmuch_
thread_ ⚠get_ total_ messages - Get the total number of messages in ‘thread’.
- notmuch_
threads_ ⚠destroy - Destroy a
notmuch_threads_tobject. - notmuch_
threads_ ⚠get - Get the current thread from ‘threads’ as a
notmuch_thread_t. - notmuch_
threads_ ⚠move_ to_ next - Move the ‘threads’ iterator to the next thread.
- notmuch_
threads_ ⚠valid - Is the given ‘threads’ iterator pointing at a valid thread.