Bug 40934 - process_message_queue.pl add ability to exclude some letter code
Summary: process_message_queue.pl add ability to exclude some letter code
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-02 09:52 UTC by Marion Durand
Modified: 2025-10-02 09:52 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marion Durand 2025-10-02 09:52:57 UTC
It would help to add an argument to process_message_queue.pl to exclude some letter-code (like a blacklist, send all letter-code except these ones)

Use case : 
Some library would like to send digest once per day (say at 20:05) but all others message every hour.
It is currently possible to do that by having 2 lines process_message_queue.pl that way :
```
00 */1 * * * process_message_queue.pl --code ACQ_NOTIF_ON_RECEIV --code CART ... # list all message except digest
05 20 * * * process_message_queue.pl #send all message including digest
```
The problem with this method is that we have to list almost all letter-code in the first line (around 85), there is a high chance that we forget some notification in the every hour line (thus these notifications will not be sent every hour as wanted)

It would be great to be able to do it by excluding some letter code 
example: 
```
00 */1 * * * process_message_queue.pl --xcode DUEDGST --xcode PREDUEDGST --xcode HOLDDGST --xcode AUTO_RENEWALS_DGST # send all exepct digest
05 20 * * * process_message_queue.pl # send all including digest
```
(In this example, argument is xcode for exclude code but I'm not sure about the name)