[ejabberd] Offline messages and priority

Holger Weiß holger at zedat.fu-berlin.de
Mon Feb 9 00:56:22 MSK 2015

* Raoul Duke <rduke496 at gmail.com> [2015-02-08 03:22]:
> The reason I particularly mention offline messages is because in
> normal operation messages are sent explicitly to the resource id of
> session A and so on they basis they can never get delivered to B.

Note that messages sent to A *are* delivered to B if A is currently
offline.  Unless B has a negative priority, that is.

> I always want A to collect the offline messages (never B).
> Am I correct in thinking that setting a negative priority on Bs
> session will accomplish that goal?


> That was my assumption (although correct me if I'm wrong) but I still
> have the race condition (although seemingly less often).

Could you paste¹ a dump of the XMPP stream (with any <auth/> credentials
and any other sensitive data stripped)?

> I am prepared to write a plugin if needs be.

That should not be necessary.


¹ http://sprunge.us/

More information about the ejabberd mailing list