Skip to content

enhancement for individual nonspam quarantine keeping#1281

Merged
endelwar merged 2 commits intomailwatch:1.2from
dneuhaeuser:quarantine_maint
Jul 25, 2023
Merged

enhancement for individual nonspam quarantine keeping#1281
endelwar merged 2 commits intomailwatch:1.2from
dneuhaeuser:quarantine_maint

Conversation

@dneuhaeuser
Copy link
Copy Markdown
Contributor

I found it useful to have quarantine keeping days independently configured for nonspam mails.

Of course this is only relevant if you also store nonspams like this:
Non Spam Actions = store-nonspam ...

So with this enhancement you can for example keep the spams for 30 days but the nonspams only for let's say 10 days.
On busy systems this can save performance and drive space.

The other way around is also possible if needed: e.g. keep spam 20 days and nonspam 40 days.

I found it useful to have quarantine keeping days independently configured for nonspam.

So with this you can for example keep the spams for 30 days but the nonspams only for let's say 10 days.
On busy systems this can save performance and drive space.

The other way around is also possible if needed: e.g. keep spam 20 days and nonspam 40 days.
{
$oldest = date('U', strtotime('-' . QUARANTINE_DAYS_TO_KEEP . ' days'));
$oldestspam = date('U', strtotime('-' . QUARANTINE_DAYS_TO_KEEP . ' days'));
$oldestnonspam = date('U', strtotime('-' . QUARANTINE_DAYS_TO_KEEP_NONSPAM . ' days'));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a check here to confirm if constant exists, or fallback on QUARANTINE_DAYS_TO_KEEP

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I will add that...

@endelwar endelwar merged commit c7092bc into mailwatch:1.2 Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants