From f620736bcc4416b0473e94bfd922eb27559fc786 Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 19 Feb 2016 22:11:29 +0100 Subject: [PATCH] export only not deleted emails --- src/pilerexport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pilerexport.c b/src/pilerexport.c index 9cb53b07..5d0a32b7 100644 --- a/src/pilerexport.c +++ b/src/pilerexport.c @@ -234,8 +234,9 @@ int build_query_from_args(char *from, char *to, char *fromdomain, char *todomain char s[SMALLBUFSIZE]; if(exportall == 1){ - rc = append_string_to_buffer(&query, "SELECT `id`, `piler_id`, `digest`, `bodydigest` FROM WHERE deleted=0"); + rc = append_string_to_buffer(&query, "SELECT `id`, `piler_id`, `digest`, `bodydigest` FROM "); rc += append_string_to_buffer(&query, SQL_METADATA_TABLE); + rc += append_string_to_buffer(&query, " WHERE deleted=0 "); return rc; }