Send a non-groupchat message to a user if mentioned in a channel without any clients joined
If a channel is set to persistent, it is possible that biboumi is joined on behalf of a user even though the user has no client joined in the channel.
This means that people may interact with the user without the user’s knowledge, possibly for a long time, because they have forgotten about that persistent channel.
To reduce the pain of that a little, it would be great if biboumi could detect messages mentioning the current nickname of the user in channels where no client is joined and send a non-groupchat message to the bare JID of the user. The text could be something like:
You have been mentioned by nickname in #email@example.com: > original message
Bonus for using XHTML-IM in addition to the plain message to mark up the channel as
xmpp:...?join URL and use a blockquote element:
<message from="irc.gateway.example" to="firstname.lastname@example.org" type="normal"> <delay xmlns='urn:xmpp:delay' from='irc.gateway.example' stamp='2019-10-05T08:42:00Z' /> <body>You have been mentioned by nickname in #email@example.com: > original message</body> <html xmlns="http://jabber.org/protocol/xhtml-im"> <body xmlns="http://www.w3.org/1999/xhtml"> <p>You have been mentioned by <a href="xmpp:firstname.lastname@example.org">nickname</a> in <a href="xmpp:#email@example.com?join">#firstname.lastname@example.org</a>:</p> <blockquote>original message</blockquote> </body> </html> </message>