Decode and encode JIDs according to XEP 0106
We can’t send private messages to a nick containing chars that are not permitted in the local part of a JID. For example, we can’t send a message to the nick “Q@CServe.quakenet.org” because that would require us to send a stanza with to="Q@CServe.firstname.lastname@example.org"
And that’s not OK (because of the @ in the local part).
http://xmpp.org/extensions/xep-0106.html proposes a solution. To send a message to that nick, we would use this JID:
Biboumi should thus: Decode (using xep 0106 rules) any JID present in a received stanza from a client Encode any JID contained in a sent stanza (of course, if Q@CServe.quakenet.org responds, the message should also come from Q\40CServe.email@example.com)
(from redmine: created on 2015-04-20, closed on 2015-04-20)