[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 email@example.com results in all recipients receiving "(broadcast) who ate my lunch?".
I hope this proves to be useful for others.
Closing as there is not much interest in this patch and it did not appear to work. We can always reopen if somebody steps up with a new pull request.
This is not working for me with 3.7.0 Beta.
minor change. It has no effect as long as the new property is not set.
Any idea why a loop and FlyweightText is used within the patch instead of
"message.setBody(messagePrefix + " " + message.getBody());"?
are we rejecting updates/patches unless a web gui for the broadcast plugin is created? I would like to see this patch applied and the issue closed. We can create a new issue "Web GUI for Broadcast Plugin" and solve it independently.