[patch] Prepend string to broadcast messages


I’ve attached a patch that allows prepending broadcast messages with an administrator defined string. I’ve chosen plugin.broadcast.messagePrefix as the name for the new property associated with this. If this property is not set then broadcast messages are not modified.


plugin.broadcast.messagePrefix = "(broadcast) "

Sending message “who ate my lunch?” to all@broadcast.domain results in all recipients receiving “(broadcast) who ate my lunch?”.

I hope this proves to be useful for others.



I realized last night that I hadn’t tested with any formatted text or hyperlinks, which ended up causing my submitted patch to fail miserably. I’ve attached an updated patch that now handles everything that I could think to test.
broadcast-plugin-prepend-fixed.txt (3257 Bytes)


I have filed this as: