How can I truncate the bounced email log? I don’t need to keep these entries forever.
They don’t take up much space so they aren’t trimmed automatically (or so I think) . You could delete them from the rails console. You might see Administrative Bulk Operations for some hints.
1 个赞
Thank you, but I could not see anything I could adapt on that page. And I know nothing about rails.
A pity, because I really don’t want to see all the old entries. It’s not disk space I am concerned about. It’s the visual noise. I want tio delete them so I can readily see if new bounces are occurring.
1 个赞
我刚清理了我的测试站点,并在研究中发现了这个主题。我使用 rails 控制台清理了我的电子邮件日志(不过我是一名新手,请记住这一点)。
这是否适用于这种情况?
EmailLog.where(bounced=true).destroy_all