X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-dump.c;h=ea326bb672efb89a27ab33c62235c5a7f51ea008;hp=86570d09070d26474210f5c62f4481b3fd5e7f8c;hb=5c7c6c0baefaf63d2b79c014b85c391a66261feb;hpb=f379aa52845f5594aa6cc2e7cf131d5f57202bbf diff --git a/notmuch-dump.c b/notmuch-dump.c index 86570d09..ea326bb6 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -36,7 +36,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) return 1; notmuch = notmuch_database_open (notmuch_config_get_database_path (config), - NOTMUCH_DATABASE_MODE_READONLY); + NOTMUCH_DATABASE_MODE_READ_ONLY); if (notmuch == NULL) return 1; @@ -58,7 +58,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) output = stdout; } - for (messages = notmuch_query_search_messages (query, 0, -1); + for (messages = notmuch_query_search_messages (query); notmuch_messages_has_more (messages); notmuch_messages_advance (messages)) {