[ejabberd] Re: Negative priorities?

Magnus Henoch mange at freemail.hu
Fri Oct 22 19:39:46 MSD 2004


Peter Zebühr <zebra at dtek.chalmers.se> writes:

> Hello!
> I was wondering if there is going to be any support for negative
> priorities on ejabberd? That is if I set my resource priority to a
> negative, a message should not be deliverd to that resource unless I
> make the priority possetive again.
> Is this support planned? Maybe its allready implemented but I didn't
> switch it on?

This patch sort of fixes the problem for me:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ejabberd-negative-presence.patch
Type: text/x-patch
Size: 793 bytes
Desc: deliver offline messages on every presence change
Url : http://lists.jabber.ru/pipermail/ejabberd/attachments/20041022/4cc085fb/ejabberd-negative-presence.bin
-------------- next part --------------

That is, after the following steps:

1. X is logged on with negative presence.

2. Y sends a message to X's bare JID.

3. X sends positive presence.

X receives the message, in contrast to the current code, where X will
receive the message when he reconnects.

However, with my patch offline messages are sent to X for _every_
presence change, even those that do not result in positive priority.
I can't immediately see how to fix that; I'll read the code more
carefully later.

Regards,
Magnus


More information about the ejabberd mailing list