From 9dea29d7836cdf212b35f302e6acb960f5be4719 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 13 Dec 2020 19:49:46 +0100 Subject: [PATCH] pilertest should calculate retention timestamp starting from the sent timestamp Signed-off-by: Janos SUTO --- src/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.c b/src/test.c index bbac1891..956910d0 100644 --- a/src/test.c +++ b/src/test.c @@ -170,7 +170,7 @@ int main(int argc, char **argv){ printf("rules check: %s\n", rule); retention_seconds = query_retain_period(&data, &state, st.st_size, sdata.spam_message, &cfg); - sdata.retained = sdata.now + retention_seconds; + sdata.retained = sdata.sent + retention_seconds; printf("folder: %d\n", get_folder_id_by_rule(&data, &state, st.st_size, sdata.spam_message, &cfg));