[patch] Prepend string to broadcast messages

Description

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.

Example:

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.

Environment

None

Attachments

1

Activity

Show:

Daryl Herzmann October 22, 2015 at 1:05 PM

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.

wroot December 5, 2010 at 7:02 PM

This is not working for me with 3.7.0 Beta.

LG April 21, 2010 at 12:00 AM

minor change. It has no effect as long as the new property is not set.

LG April 18, 2010 at 1:09 PM

Any idea why a loop and FlyweightText is used within the patch instead of
"message.setBody(messagePrefix + " " + message.getBody());"?

LG December 14, 2008 at 3:32 AM

Hi Gato,

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.

LG

Incomplete

Details

Assignee

Reporter

Priority

Created August 29, 2008 at 8:35 PM
Updated October 22, 2015 at 1:05 PM
Resolved October 22, 2015 at 1:05 PM