Redeliver all held messages #3044
Unanswered
jarqvi
asked this question in
Help with using Postal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some time ago, I encountered a lot of Held messages while using Postal, and unfortunately, I couldn't find a way in the Postal panel to Redeliver all of them.
I saw some issues on GitHub that offered some solutions. However, those solutions were a bit risky and complicated for me. So, the solution that came to my mind was:
First, I fetched a list of all Held messages from the Postal database in the messages table, selecting only the id of those messages. Then I realized that in the Postal panel, a request is made to the following address for Redelivering:
https://<domain>/org/<org-name>/servers/<server-name>/messages/<message-id>/retry
Then, using the browser in the Inspect section under the Network tab, I copied that request as cURL.
After that, using bash and the list of Held message ids, I wrote a loop to Redeliver all of them.
I thought I’d share this in case it might be useful for some friends.
Beta Was this translation helpful? Give feedback.
All reactions