Well it works *most* of the time...<br><br>If I sign-out a node subscriber (by closing the tab for my strophe-based client), and publish another item to that node right away, the subscriber may not get the published item when he signs on again.<br>
<br>I really need reliable delivery here -- unfortunately the pubsub spec has iq notifications only for presence-based delivery nodes...<br><br>Starting to wonder if I should have tried an MQ service instead of xmpp pubsub...<br>
<br><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 12:14 PM, Liam <span dir="ltr">&lt;<a href="mailto:ejabberd@networkimprov.net">ejabberd@networkimprov.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This worked, thanks!<br><br>&lt;field var=&#39;pubsub#notification_type&#39;&gt;&lt;value&gt;normal&lt;/value&gt;&lt;/field&gt;<div class="im"><br>&lt;field var=&#39;pubsub#send_last_published_item&#39;&gt;&lt;value&gt;never&lt;/value&gt;&lt;/field&gt;<br>

<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Tue, Jan 26, 2010 at 1:59 PM, Liam <span dir="ltr">&lt;<a href="mailto:ejabberd@networkimprov.net" target="_blank">ejabberd@networkimprov.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think send_last_published_item = on_sub_and_presence is wrong for my case... Multiple items may be published while a subscriber is offline. Also I don&#39;t want a new subscriber to get previously published items...<br>

<br>
I&#39;d expect the behavior I see only if presence_based_delivery is true, and for this node it&#39;s false, the default.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">


Try with :<br>&lt;field var=&#39;pubsub#send_last_published_item&#39; type=&#39;list-single&#39;&gt;<br>  &lt;value&gt;on_sub_and_presence&lt;/value&gt;<br>&lt;/field&gt;<br></blockquote><div><div></div><div><br>
<br><div class="gmail_quote">On Tue, Jan 26, 2010 at 12:35 PM, Liam <span dir="ltr">&lt;<a href="mailto:ejabberd@networkimprov.net" target="_blank">ejabberd@networkimprov.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Using 2.1.1 on WinXP...<br><br>Publishing to a node configured as follows, the subscriber gets the item if online, but if offline doesn&#39;t get the item on next login. Shouldn&#39;t the item go to the user&#39;s offline queue?<br>



<br>Subscriber creates and subscribes to the node:<br><br>&lt;iq from=&#39;me@localhost/reprev&#39; to=&#39;pubsub.localhost&#39;<br>        type=&#39;set&#39; id=&#39;8776&#39; xmlns=&#39;jabber:client&#39;&gt;<br>    &lt;pubsub xmlns=&#39;<a href="http://jabber.org/protocol/pubsub" target="_blank">http://jabber.org/protocol/pubsub</a>&#39;&gt;<br>



        &lt;create node=&#39;me&#39;/&gt;<br>        &lt;configure&gt;&lt;x xmlns=&#39;jabber:x:data&#39; type=&#39;submit&#39;&gt;<br>            &lt;field var=&#39;FORM_TYPE&#39; type=&#39;hidden&#39;&gt;&lt;value&gt;<a href="http://jabber.org/protocol/pubsub#node_config" target="_blank">http://jabber.org/protocol/pubsub#node_config</a>&lt;/value&gt;&lt;/field&gt;<br>



            &lt;field var=&#39;pubsub#notify_retract&#39;&gt;&lt;value&gt;0&lt;/value&gt;&lt;/field&gt;<br>            &lt;field var=&#39;pubsub#persist_items&#39;&gt;&lt;value&gt;0&lt;/value&gt;&lt;/field&gt;<br>            &lt;field var=&#39;pubsub#publish_model&#39;&gt;&lt;value&gt;open&lt;/value&gt;&lt;/field&gt;<br>



            &lt;field var=&#39;pubsub#access_model&#39;&gt;&lt;value&gt;whitelist&lt;/value&gt;&lt;/field&gt;<br>            &lt;field var=&#39;pubsub#send_last_published_item&#39;&gt;&lt;value&gt;never&lt;/value&gt;&lt;/field&gt;<br>



&lt;/x&gt;&lt;/configure&gt;&lt;/pubsub&gt;&lt;/iq&gt;<br><br>&lt;iq from=&#39;me@localhost/reprev&#39; to=&#39;pubsub.localhost&#39;<br>        type=&#39;set&#39; id=&#39;8777&#39; xmlns=&#39;jabber:client&#39;&gt;<br>  &lt;pubsub xmlns=&#39;<a href="http://jabber.org/protocol/pubsub" target="_blank">http://jabber.org/protocol/pubsub</a>&#39;&gt;<br>



        &lt;subscribe node=&#39;me&#39; jid=&#39;me@localhost/reprev&#39;/&gt;<br>&lt;/pubsub&gt;&lt;/iq&gt;<br><br>
Relevant config:<br>
  {mod_offline,  []},<br>
  {mod_pubsub,   [ % requires mod_caps<br>
          {access_createnode, pubsub_createnode},<br>
          {ignore_pep_from_offline, true},<br>
          {last_item_cache, false},<br>
          {plugins, [&quot;flat&quot;, &quot;hometree&quot;, &quot;pep&quot;]}<br>
         ]},<br><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>