I believe it would be beneficial to have Before and After a message is added to the queue. Right now I do such a thing to read a priority header to send something to the top of the queue. However this involves the COM API, VBScript and an outside CMD Window using Task Scheduler. It also involves reading in ALL undelivered messages. It should really be doing this on a one by one message basis once it comes in but its not possible.
I think adding a trigger for before and after queue would be highly beneficial because it will have the Message ID available where users can do certain things to it.
https://www.hmailserver.com/forum/viewt ... =9&t=33955