postal icon indicating copy to clipboard operation
postal copied to clipboard

Removing Email Queues on Database

Open joeneldeasis opened this issue 7 years ago • 3 comments

Is there any way to remove the queued messages on the database? As far as I know I've set the status to HardFail on table messages and then restart the postal services but it does not reflect the number of removed queued messages on the dashboard.

joeneldeasis avatar Dec 28 '18 07:12 joeneldeasis

Queued messages are also in the queued_messages table which I believe is the table actually responsible for that count

(Maybe related https://github.com/atech/postal/issues/521)

willpower232 avatar Jan 02 '19 13:01 willpower232

Hi can you guide me how to set all the emails to HardFail so it will not be processed anymore? Or I can just delete the emails in the raw tables of each postal-server-* database? Thanks

joeneldeasis avatar Jan 03 '19 04:01 joeneldeasis

The raw tables are the actual content of the message, deleting them will not change anything apart from you storing the content of the messages.

If you find the messages you want to stop in the messages table in each database, you can change the status field there.

If you want to remove messages from the queue, you will have to remove them from the queued_messages table and also remove them from RabbitMQ if they have already been put there but I am not sure how to do that last part.

willpower232 avatar Jan 03 '19 12:01 willpower232