كيفية اقتطاع سجل البريد الإلكتروني المرتد

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 (أنا مبتدئ، لذا ضع ذلك في اعتبارك).\n\nهل سيكون هذا مناسبًا لهذه الحالة؟\n\n\nEmailLog.where(bounced=true).destroy_all\n