mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 14:45:59 +03:00
[GH-ISSUE #33] Feature suggestion: optionally delete emails after they reach a certain age? #20
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dan-Q on GitHub (Aug 12, 2021).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/33
I'd like to be able to set an environment variable, e.g.
MAXAGE, to say how many days old an email should be before it's deleted. An automated job can then delete ones over that age.(My opentrashmail server gathered multiple gigabytes of junk!)
@geek-at commented on GitHub (Aug 12, 2021):
love the idea, as I'm having the same problems on my public instance. Also should implement all emails to non-configured domains should be discarded
@Dan-Q commented on GitHub (Nov 9, 2021):
In the meantime (for anybody who wants to hack something together on their own box), I've manually added the following script to
/etc/periodic/daily/delete-old-mailto delete mail older than 7 days:It's a bit clunky (and will do stupid things like trying to delete directories before it deletes the files within them, but that fixes itself the next day) but it stops the server getting bogged down.