Used to use my own wee C prog that just passed the alert unparsed to libnotify; currently using a modified version of this far superior shell script (which I can't take any credit for):
https://github.com/Bruce-Connor/alpine-osd-notify/blob/maste...
(You have to set newmail-fifo-path in your pinerc.)