Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-04-07 12:54:46 +02:00
parent 421f0c538c
commit 19ada1288d

View File

@ -72,7 +72,6 @@ int import_message(struct session_data *sdata, struct data *data, struct config
state = parse_message(sdata, 1, data, cfg); state = parse_message(sdata, 1, data, cfg);
post_parse(sdata, &state, cfg); post_parse(sdata, &state, cfg);
rule = check_against_ruleset(data->archiving_rules, &state, sdata->tot_len, sdata->spam_message); rule = check_against_ruleset(data->archiving_rules, &state, sdata->tot_len, sdata->spam_message);
if(rule){ if(rule){
@ -87,6 +86,9 @@ int import_message(struct session_data *sdata, struct data *data, struct config
rc = ERR; rc = ERR;
} }
else { else {
// When importing emails, we should add the retention value (later) to the original sent value
sdata->retained = sdata->sent;
rc = process_message(sdata, &state, data, cfg); rc = process_message(sdata, &state, data, cfg);
unlink(state.message_id_hash); unlink(state.message_id_hash);
} }