From 10309b9c2535155b3731b0c52017b449cfcda378 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sat, 10 Apr 2021 20:53:05 +0200 Subject: [PATCH] reindex should cleanup its tempfiles Signed-off-by: Janos SUTO --- src/reindex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/reindex.c b/src/reindex.c index b2b137b4..c3e14a96 100644 --- a/src/reindex.c +++ b/src/reindex.c @@ -128,6 +128,9 @@ uint64 retrieve_email_by_metadata_id(struct session_data *sdata, struct data *da rc = store_index_data(sdata, &state, data, stored_id, cfg); + unlink(sdata->tmpframe); + remove_stripped_attachments(&state); + if(rc == OK) reindexed++; else printf("failed to add to %s table: %s\n", SQL_SPHINX_TABLE, filename);