Bug 33360: Incorporate Koha::Notice::Util in Letters:SendQueuedMessages
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 30 Mar 2023 06:58:10 +0000 (08:58 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Apr 2023 14:35:31 +0000 (11:35 -0300)
commit9a1c17509fa32bad2c03c1da8b3d2c0aff8f52b4
tree72978fa3dd9783fdb9fb5dddbd1e077a3283310e
parentf27a43c54a64a9d10b34ae699b61414c40544fc7
Bug 33360: Incorporate Koha::Notice::Util in Letters:SendQueuedMessages

Minimal adjustment to get the feature working.
Will still be improved in follow-up.

Test plan:
[1] Add a domain limit to your koha-conf:
    <message_domain_limits>
    <domain><name>gmail.com</name><limit>1</limit> <unit>1h</unit></domain>
    </message_domain_limits>
    Replace gmail.com by the domain you want to send to.
    Restart all.
[2] Disable cron job for message queue.
[3] Generate two pending notices in the queue.
[4] Run process_message_queue.pl
[5] Check that one is sent, one is still pending.
[6] Run again.
[7] Check: nothing is sent, last one still pending.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Letters.pm