# Script to resend inbound messages form some time window to the user

**URL:** <https://hub.soprani.ca/t/script-to-resend-inbound-messages-form-some-time-window-to-the-user/511>\
**Category:** Issues\
**Tags:** implemented, sgx-bwmsgsv2\
**Created:** [January 5, 2026, 6:36pm UTC](https://hub.soprani.ca/t/script-to-resend-inbound-messages-form-some-time-window-to-the-user/511 "2026-01-05T18:36:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [January 5, 2026, 6:36pm UTC](https://hub.soprani.ca/t/script-to-resend-inbound-messages-form-some-time-window-to-the-user/511/1 "2026-01-05T18:36:28Z")

</div>

from the redis stream

---

<div class="post-metadata">

**Author:** ![amolith](https://hub.soprani.ca/user_avatar/hub.soprani.ca/amolith/32/12_2.png) [@amolith](https://hub.soprani.ca/u/amolith)\
**Post date:** [February 5, 2026, 5:52pm UTC](https://hub.soprani.ca/t/script-to-resend-inbound-messages-form-some-time-window-to-the-user/511/2 "2026-02-05T17:52:11Z")

</div>

> iirc, take a date range, iterate over messages in that range, filter down to inbound only and owner of this user’s number only, and construct the original (or close enough) payload so you can POST it to the webhook again. Though this will result in a second record in the redis stream which we need to decide if we want or not for re-deliver.

---

<div class="post-metadata">

**Author:** ![amolith](https://hub.soprani.ca/user_avatar/hub.soprani.ca/amolith/32/12_2.png) [@amolith](https://hub.soprani.ca/u/amolith)\
**Post date:** [February 18, 2026, 9:31pm UTC](https://hub.soprani.ca/t/script-to-resend-inbound-messages-form-some-time-window-to-the-user/511/3 "2026-02-18T21:31:33Z")

</div>

[https://lists.sr.ht/~singpolyma/dev/\<DGIENUYRGRKF.4P6C2T5VEHRE@secluded.site\>](https://lists.sr.ht/~singpolyma/dev/%3CDGIENUYRGRKF.4P6C2T5VEHRE@secluded.site%3E)
