I am brand new to this CL board, but I was just reading through the guide and ran into this. I think it is exactly what you were looking for, but it seems a little scary as you are sending the search command and send command at the same time. I would definitely test this out first. Hope it helps.
Sorry about the bad formatting:
hcismat [-i ] ?-pri ?
?-reply?
Where:
-i is the input filename.
is exactly one of the following:
-orut Resends unselected messages to thread .
-oruf Resends unselected messages to file .
-orst Resends selected messages to thread .
-orsf Resends selected messages to file .
-ocu Removes unselected messages from input file.
-ocs Removes selected messages from input file.
-pri is the resend priority.
-reply resends selected messages as REPLY instead of DATA.
is exactly one of:
-ibpre Resends messages as inbound pre-TPS.
-ibpost Resends messages as inbound post-TPS.
-obpre Resends messages as outbound pre-TPS.
-obpost Resends messages as outbound post-TPS.
is any valid grouping of the following:
-sds Starts at date and time .
-sde Ends at date and time .
-sdn Nots the meaning of the date search.
-sms Starts at message ID .
-sme Ends at message ID .
-smn Nots the meaning of the mid search.
-ss Sends messages only from .
-ssn Nots the meaning of the source host search.
-sall Selects all messages in the input file.