Re: [Standards] MAM and MUC archives

2015-07-27 Thread Kevin Smith
Hi Mickaël,

On 27 Jul 2015, at 12:14, Mickaël Rémond mrem...@process-one.net wrote:
 I need a few questions to clarify the behaviour of the MAM XEP in the context 
 of the MUC archives.
 
 Are we supposed to send the MAM queries to the MUC service or to the room 
 itself ?

To the room.

 2. If we send the query to the room itself.
 - I guess it means each room must themselves somewhat advertised the Archive 
 service. It seems a bit strange as I would expect to have a single service to 
 talk to for my MUC archives

Yes, if you want the archives for a particular room, you’d talk to that room. 
This isn’t *your* MUC archives, but those of the room - it’ll contain messages 
while you weren’t in there, etc.

For those messages you have personally received from MUCs, you could query your 
personal archive, if your server stores MUC messages in the archive.

 - The filter / with behaviour would still need to be clarified. Does it 
 really make sense to return only messages send by a given user ?

It seems to make sense to me, if you want to see a particular user’s history 
within the room. I’m not sure that it’s sensibly defined, though. We’ve (Matt 
and I) got a bunch of pending updates for MAM, I’ll have to see where we are 
with them.

/K

Re: [Standards] MAM and MUC archives

2015-07-27 Thread Kevin Smith
On 27 Jul 2015, at 14:38, Evgeny Khramtsov xramt...@gmail.com wrote:
 
 Mon, 27 Jul 2015 14:05:34 +0100
 Kevin Smith kevin.sm...@isode.com wrote:
 
 Yes, 
 “””
 3.2 MUC archives
 
 A MUC service allowing MAM queries for a room MUST expose the MAM
 archive on the room's bare JID “””
 
 This is still unclear. It's only said that a service allows MAM queries
 for a room, but doesn't say where exactly a query must be sent: to the
 service itself or directly to the room. I would like to see this
 sentence to be written or an example to be added. I'm not to blame,
 just my 2 cents.

An example covering MUC seems reasonable enough, thanks.

/K

Re: [Standards] MAM and MUC archives

2015-07-27 Thread Evgeny Khramtsov
Mon, 27 Jul 2015 12:32:48 +0100
Kevin Smith kevin.sm...@isode.com wrote:

 To the room.

Will it be defined in the spec? Because it's not very obvious.


Re: [Standards] MAM and MUC archives

2015-07-27 Thread Kevin Smith
Hiya,

On 27 Jul 2015, at 12:38, Evgeny Khramtsov xramt...@gmail.com wrote:
 
 Mon, 27 Jul 2015 12:32:48 +0100
 Kevin Smith kevin.sm...@isode.com wrote:
 
 To the room.
 
 Will it be defined in the spec? Because it's not very obvious.

Yes, 
“””
3.2 MUC archives

A MUC service allowing MAM queries for a room MUST expose the MAM archive on 
the room's bare JID
“””

/K

Re: [Standards] MAM and MUC archives

2015-07-27 Thread Evgeny Khramtsov
Mon, 27 Jul 2015 14:05:34 +0100
Kevin Smith kevin.sm...@isode.com wrote:

 Yes, 
 “””
 3.2 MUC archives
 
 A MUC service allowing MAM queries for a room MUST expose the MAM
 archive on the room's bare JID “””

This is still unclear. It's only said that a service allows MAM queries
for a room, but doesn't say where exactly a query must be sent: to the
service itself or directly to the room. I would like to see this
sentence to be written or an example to be added. I'm not to blame,
just my 2 cents.