[Koha-bugs] [Bug 31453] Add ability to filter messages to process using process_message_queue.pl via a command line parameter

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 27 16:24:20 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31453

Andrew Fuerste-Henry <andrewfh at dubcolib.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #142895|0                           |1
        is obsolete|                            |

--- Comment #4 from Andrew Fuerste-Henry <andrewfh at dubcolib.org> ---
Created attachment 145756
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145756&action=edit
Bug 31453: Add ability to filter messages to process using
process_message_queue.pl via a command line parameter

It would be very useful to be able to tell process_message_queue.pl to skip
processing some messages. This is particularly useful where a plugin handles
sending some message using the before_send_messages hook, but while that plugin
is processing, more messages meant for the plugin might be queued. At that
point, control moves back to the script and SendQueuedMessages is called, and
those messages end up being processed there instead of by the plugin.

Test Plan:
1) Apply this patch
2) Queue two messages, each with a unique word
3) Run process_message_queue --where "content NOT LIKE '%WORD%'"
   where WORD is a unique word in one of the two message
4) Note the message containing "WORD" was not processed
5) prove t/db_dependent/Letters.t

Signed-off-by: Andrew Fuerste-Henry <andrewfh at dubcolib.org>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list