After enabling saving to the dashboard, mails will stack up and are never cleaned up. This can cause an the database to be overloaded with old mails. Feature request to add a periodic cron clean up, based on the settings the user can provide.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | mail_safety_cron_cleanup-2894814-10.patch | 2.3 KB | steven buteneers |
| #10 | interdiff-2894814-8-10.txt | 374 bytes | steven buteneers |
| #8 | interdiff-2894814-3-8.txt | 2.08 KB | steven buteneers |
| #8 | mail_safety_cron_cleanup-2894814-8.patch | 2.29 KB | steven buteneers |
| #6 | interdiff-2894814-3-6.txt | 1.74 KB | steven buteneers |
Comments
Comment #2
steven buteneers commentedComment #3
steven buteneers commentedApplied patch to add cron functionality to que old mails to be deleted, using the already available delete callback as worker callback for the que items.
Comment #4
steven buteneers commentedComment #5
dmsmidtSome nits:
Change to:
Remove stored mails older than the given age.
I would rename this variable to: mail_safety_mail_expire.
This variable should also be deleted on module uninstall.
Rename to: mail_safety_expire_mails?
Typ0's:
Que/Queue
mail safety/Mail Safety
Comment #6
steven buteneers commentedAdded new patch + interdiff
Comment #7
steven buteneers commentedComment #8
steven buteneers commentedForgot to add the variable_del on uninstall. Re-added patch + interdiff
Comment #9
dmsmidtLooking good!
Comment #10
steven buteneers commentedFound out that the queue retrieved for creating items was wrong, added a new patch + interdiff
Comment #11
dmsmidtA that I missed that. Good catch. Tested and works.
Comment #13
barthje commentedAdded to the new release