diff --git a/src/rules.c b/src/rules.c index 04a1023..3c31c14 100644 --- a/src/rules.c +++ b/src/rules.c @@ -271,7 +271,7 @@ if(p->domainlen > 2){ if(strcasestr(state->b_to_domain, p->domain) || strcasestr(state->b_from_domain, p->domain)){ state->retention = p->days; - return (time_t)p->days * (time_t)86400; + return (time_t)(state->retention) * (time_t)86400; } } else { @@ -305,7 +305,7 @@ if(ismatch > 0){ state->retention = p->days; - return (time_t)p->days * (time_t)86400; + return (time_t)(state->retention) * (time_t)86400; } }