Duplicating messages, changing sender jabber id

Hello everyone!

Now I really need the help of community

We have Openfire 3.7.0 running and there’s one thing we should do:

As example: we have two users logged in, when a message arrives to a user #1 it should be duplicated to user #2, but with the same sender jid. The simplest way we could do this is to check ofMessageArchive table in openfire database (with a cron job or anything else) and resend the messages to another user, but another problem appears then. We cannot send the message from the same account it was sent from.

Is there any way to do this? I don’t know Java at all, so creating a plugin would be hard work that will take lots of free time. Does openfire have any plugin to duplicate all the messages received on account #1 to account #2? How to send messages from other’s JID?