[ejabberd] pubsub item not delivered if subscriber offline

kael ka-el at laposte.net
Wed Jan 27 00:31:31 MSK 2010


On 01/26/2010 09:35 PM, Liam wrote:
> Using 2.1.1 on WinXP...
> 
> Publishing to a node configured as follows, the subscriber gets the item 
> if online, but if offline doesn't get the item on next login. Shouldn't 
> the item go to the user's offline queue?
> 
> Subscriber creates and subscribes to the node:
> 
> <iq from='me at localhost/reprev' to='pubsub.localhost'
>      type='set' id='8776' xmlns='jabber:client'>
>    <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>      <create node='me'/>
>      <configure><x xmlns='jabber:x:data' type='submit'>
>        <field var='FORM_TYPE' 
> type='hidden'><value>http://jabber.org/protocol/pubsub#node_config</value></field>
>        <field var='pubsub#notify_retract'><value>0</value></field>
>        <field var='pubsub#persist_items'><value>0</value></field>
>        <field var='pubsub#publish_model'><value>open</value></field>
>        <field var='pubsub#access_model'><value>whitelist</value></field>
>        <field 
> var='pubsub#send_last_published_item'><value>never</value></field>
> </x></configure></pubsub></iq>

Try with :

<field var='pubsub#send_last_published_item' type='list-single'>
  <value>on_sub_and_presence</value>
</field>

and

>   {mod_pubsub,   [ % requires mod_caps
>           {access_createnode, pubsub_createnode},
>           {ignore_pep_from_offline, true},

             {ignore_pep_from_offline, false},

>           {last_item_cache, false},
>           {plugins, ["flat", "hometree", "pep"]}
>          ]},


-- 
kael



More information about the ejabberd mailing list