Skip to content

Conversation

@soup-bowl
Copy link
Owner

@soup-bowl soup-bowl commented Apr 3, 2024

This PR introduces the ability to change the log expiry via a new hook, plus a notice for how long the expiry time is currently set to.

A screenshot of the Mail settings with the words "this log will expire in 1 month"

The new hook:

# Change the time for expiry (default is 1 month).
add_filter( 'simple_smtp_log_expiry', 2629800 );

@soup-bowl soup-bowl self-assigned this Apr 3, 2024
@codesandbox
Copy link

codesandbox bot commented Apr 3, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@soup-bowl soup-bowl marked this pull request as ready for review April 4, 2024 18:15
@soup-bowl soup-bowl added the enhancement New feature or request label Jul 14, 2024
@soup-bowl soup-bowl merged commit b6a6573 into develop Jul 21, 2024
@soup-bowl soup-bowl deleted the soup-bowl/log-expiry branch July 21, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display the log retention value in the settings page Customisable delay to prune logs

3 participants