pilertest should calculate retention timestamp starting from the sent timestamp

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-12-13 19:49:46 +01:00
parent 61834843f1
commit 9dea29d783

View File

@ -170,7 +170,7 @@ int main(int argc, char **argv){
printf("rules check: %s\n", rule); printf("rules check: %s\n", rule);
retention_seconds = query_retain_period(&data, &state, st.st_size, sdata.spam_message, &cfg); 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)); printf("folder: %d\n", get_folder_id_by_rule(&data, &state, st.st_size, sdata.spam_message, &cfg));