[JDEV] Negative priority
Joe Hildebrand
JHildebrand at jabber.com
Mon Dec 15 17:46:10 CST 2003
I don't see the context for this conversation, so I may be missing
something.
Setting your priority to -1 affects ONLY the step in the server where it's
picking what resource to send a message addressed to node at host (no
resource). -1 resources are not eligible for this default routing.
Messages and iq's addressed to the node at host/resource will still go to that
session, as will presences addressed to node at host and presences addressed to
node at host/resource (where the resource is that of the -1 session).
I know, the -im draft says that presences MUST NOT be sent, but that was
apparently a mis-copy/paste that will get fixed in the last draft.
--
Joe Hildebrand
> -----Original Message-----
> From: Mikael Hallendal [mailto:micke at imendio.com]
> Sent: Monday, December 15, 2003 5:21 AM
> To: Jabber Devel List
> Subject: Re: [JDEV] Negative priority
>
> mån 2003-12-01 klockan 19.05 skrev Peter Saint-Andre:
> > On Mon, Dec 01, 2003 at 06:23:16PM +0100, Magnus Henoch wrote:
> > > XMPP IM states in section 11.3 that a resource with a negative
> > > priority will not receive message or presence stanzas. What will
> > > happen to those stanzas instead?
> > >
> > > For example, if a client sets negative priority when the user is
> > > away, will it receive notification of accumulated
> presence changes
> > > when it sets a positive priority again, and similarly for
> messages?
> > > Or is it simply a bad idea to rely on such behavior?
> >
> > Those stanzas get sent to /dev/null -- if you don't like that
> > behavior, don't set your presence to a negative number. ;-) This
> > functionality is mainly for non-chat nodes, rather than
> normal IM clients.
>
> Oh :((( I had really been waiting for this in the servers
> since it would make it possible to not have messages
> delivered to clients that are away.
>
> For example, I leave my computer as online but away at home
> when I go to work, I don't want any messages delivered to the
> client since I'm not there, after that I go to work and I
> want my messages to be routed there instead, and all the
> messages sent while I was on the bus.
>
> Would it be possible to have something like this? Some way of
> notifying the server that you don't want particular messages.
> Like "Please deliver presence messages but not messages"? Ie.
> some way of filtering what gets delivered to a particular
> client and what gets stored offline.
>
> Regards,
> Mikael Hallendal
> --
> Mikael Hallendal micke at imendio.com
> Imendio HB http://www.imendio.com
> Phone: +46 (0)709 718 918
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list