#include <unistd.h>
-typedef void (*add_files_callback_t) (notmuch_message_t *message);
-
typedef struct {
int output_is_a_tty;
int verbose;
int processed_files;
int added_messages;
struct timeval tv_start;
-
- add_files_callback_t callback;
} add_files_state_t;
static volatile sig_atomic_t do_add_files_print_progress = 0;
next = NULL;
}
- status = notmuch_directory_set_mtime (directory, path_mtime);
- if (status && ret == NOTMUCH_STATUS_SUCCESS)
- ret = status;
+ if (! interrupted) {
+ status = notmuch_directory_set_mtime (directory, path_mtime);
+ if (status && ret == NOTMUCH_STATUS_SUCCESS)
+ ret = status;
+ }
DONE:
if (next)