lib: check for nil message in find_message_by_filename
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
database: add GetConfig, SetConfig, GetConfigList
libnotmuch: don't return a pointer for message.Replies()
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
cgo: stuff
* use real c enum values
* simplify code where possible
* fix potential memory errors (leaks, double free)
* wrapper structs are small, do not return pointers
Signed-off-by: Robin Jarry <robin@jarry.cc>
libnotmuch: fix handling of config loading
notmuch distinguishes heavily between a NULL config_path and an empty
config_path: NULL will trigger a search for a config, and return an
error if no config is found. The empty string will load no config. Adda
FindConfig bool value to trigger the latter behavior
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
libnotmuch: split maildir flag sync
Split the maildir flag sync function. The previous implementation would
sync flags from maildir to notmuch, and then back again. These should be
separate calls.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
libnotmuch: extend support for Directories and Properties
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
scanner: allow scanner to scan arrays too
Allow the scanner to work on a stream of arrays as well
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
fix iterator APIs to be more go-like
Next returns a bool, and the value is retrieved by another call. This
makes implementations easier
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>