Run script on notification receive
It could be handy to have a script being called for each new notification. This would allow to format notification bodies that contain more than plain text (like HTML).
I like the idea of this. Just trying to figure out how to implement it while introducing as little bloat as possible.
Something to consider is that I think Wired can already sort of do this using the print_to_file config option. You could read notification as they come in, and adjust and then send a new notification replacing the existing one using notify-call and using the ID.
I agree that this could be a lot more pleasant to do though, and it doesn't help that notify-send doesn't natively support replacing.
Replacing could be an option, although less elegant than pre-processing the notification with a hook. It all depends on how much work this takes to implement.
This is only roughly related, but I just noticed that Wired mistakenly has the body-markup capability. I've removed it now which should inform programs not to send markup.
We still want to do the script thing eventually, but this might fix your intermediary issue.
That can be a good solution. I'll try it out as soon as I can.