バウンス・リジェクトメールログのクリア方法

バウンスおよび拒否されたメールログのみをクリアする方法

レールコンソール経由で、以下を実行できます。

EmailLog.where(bounced: true).destroy_all
「いいね!」 4

それは素晴らしいです。しかし、「rejected」を代入するとエラーが発生します。

ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR:  column email_logs.rejected does not exist

admin -> all site settings -> delete rejected email after days の設定を変更することで制御できるはずです。

「いいね!」 3

それは前方のみで機能するのかもしれません。古い却下されたものはまだ存在しています。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.