Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the email storage time. #33

Open
louishot opened this issue Apr 3, 2020 · 3 comments
Open

How to set the email storage time. #33

louishot opened this issue Apr 3, 2020 · 3 comments

Comments

@louishot
Copy link

louishot commented Apr 3, 2020

like delete any received email from 2 days ago

@JoeBiellik
Copy link
Owner

This isn't currently supported, I just occasionally mass delete them. It would require major changes but might be something I add in the future.

@brainomite
Copy link

@JoeBiellik This, in theory, shouldn't be too hard.

  1. Write a stand-alone entry like mail-server.js and `server.js.
  2. Have the entry file delete emails that are x seconds old
  3. Schedule the job (the new file), using like a cron-like tool but for docker something like Ofelia.
    • If you look at their github readme, first read the beginning, once you hit the config section, jump down to Docker Labels then scroll down further till you see the docker-compose setup

@JoeBiellik
Copy link
Owner

For bulk deleting emails over a particular age periodically, it could be done in app, but I think its easier to do it with external database tools and crons, as I do currently. I was imagining a way for a user to set a particular expire period per email address, which is more complex and could potentially have other users adjusting "your" email address expiry.

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

No branches or pull requests

3 participants