state->count, state->total_messages);
print_formatted_seconds ((state->total_messages - state->count) /
rate_overall);
- printf (" remaining).\r");
+ printf (" remaining). \r");
fflush (stdout);
}
output = fopen (argv[0], "w");
if (output == NULL) {
fprintf (stderr, "Error opening %s for writing: %s\n",
- argv[1], strerror (errno));
+ argv[0], strerror (errno));
ret = 1;
goto DONE;
}
goto DONE;
}
- query = notmuch_query_create (notmuch, NOTMUCH_QUERY_ALL);
+ query = notmuch_query_create (notmuch, "");
if (query == NULL) {
fprintf (stderr, "Out of memory\n");
ret = 1;
}
fprintf (output, ")\n");
+
+ notmuch_message_destroy (message);
}
notmuch_query_destroy (query);