We're updating the issue view to help you get more done. 

[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

Acceptance Test - Entry

None

Activity

Show:
LG
December 14, 2008, 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

LG
April 18, 2010, 1:09 PM

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

LG
April 21, 2010, 12:00 AM

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

wroot
December 5, 2010, 7:02 PM

This is not working for me with 3.7.0 Beta.

Daryl Herzmann
October 22, 2015, 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.

Assignee

Unassigned

Reporter

Daryl Herzmann

Labels

None

Expected Effort

None

Ignite Forum URL

None

Priority

Minor
Configure