Software /
code /
prosody
Comparison
spec/scansion/mam_extended.scs @ 11268:e3f6f0b39e7b
mod_mam: Advertise extended MAM 0.7.x behind a feature flag
In order to ease testing until the extended feautres are all
implemented.
Also TODOs for all the sub-features.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 Nov 2020 21:00:45 +0100 |
child | 11269:342ac5d806fb |
comparison
equal
deleted
inserted
replaced
11267:97077089f3c2 | 11268:e3f6f0b39e7b |
---|---|
1 # MAM 0.7.x Extended features | |
2 | |
3 [Client] Romeo | |
4 jid: extmamtester@localhost | |
5 password: password | |
6 | |
7 --------- | |
8 | |
9 Romeo connects | |
10 | |
11 # Enable MAM so we can save some messages | |
12 Romeo sends: | |
13 <iq type="set" id="enablemam"> | |
14 <prefs xmlns="urn:xmpp:mam:2" default="always"> | |
15 <always/> | |
16 <never/> | |
17 </prefs> | |
18 </iq> | |
19 | |
20 Romeo receives: | |
21 <iq type="result" id="enablemam"> | |
22 <prefs xmlns="urn:xmpp:mam:2" default="always"> | |
23 <always/> | |
24 <never/> | |
25 </prefs> | |
26 </iq> | |
27 | |
28 # Some messages to look for later | |
29 Romeo sends: | |
30 <message to="someone@localhost" type="chat" id="chat01"> | |
31 <body>Hello</body> | |
32 </message> | |
33 | |
34 Romeo sends: | |
35 <message to="someone@localhost" type="chat" id="chat02"> | |
36 <body>U there?</body> | |
37 </message> | |
38 | |
39 Romeo sends: | |
40 <iq type="set" id="mamquery1"> | |
41 <query xmlns="urn:xmpp:mam:2" queryid="q1"/> | |
42 </iq> | |
43 | |
44 Romeo receives: | |
45 <message to="${Romeo's full JID}"> | |
46 <result xmlns="urn:xmpp:mam:2" queryid="q1" id="{scansion:any}"> | |
47 <forwarded xmlns="urn:xmpp:forward:0"> | |
48 <delay stamp="2008-08-22T21:09:04Z" xmlns="urn:xmpp:delay"/> | |
49 <message to="someone@localhost" xmlns="jabber:client" type="chat" xml:lang="en" id="chat01" from="${Romeo's full JID}"> | |
50 <body>Hello</body> | |
51 </message> | |
52 </forwarded> | |
53 </result> | |
54 </message> | |
55 | |
56 Romeo receives: | |
57 <message to="${Romeo's full JID}"> | |
58 <result xmlns="urn:xmpp:mam:2" queryid="q1" id="{scansion:any}"> | |
59 <forwarded xmlns="urn:xmpp:forward:0"> | |
60 <delay stamp="2008-08-22T21:09:04Z" xmlns="urn:xmpp:delay"/> | |
61 <message to="someone@localhost" xmlns="jabber:client" type="chat" xml:lang="en" id="chat02" from="${Romeo's full JID}"> | |
62 <body>U there?</body> | |
63 </message> | |
64 </forwarded> | |
65 </result> | |
66 </message> | |
67 | |
68 # FIXME unstable tag order from util.rsm | |
69 Romeo receives: | |
70 <iq type="result" id="mamquery1" to="${Romeo's full JID}"> | |
71 <fin xmlns="urn:xmpp:mam:2" complete="true" queryid="q1"> | |
72 <set xmlns="http://jabber.org/protocol/rsm" scansion:strict="false"> | |
73 <count>2</count> | |
74 <first></first> | |
75 <last></last> | |
76 </set> | |
77 </fin> | |
78 </iq> |