aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-23 15:34:19 +0100
committerKim Alvefur <zash@zash.se>2018-12-23 15:34:19 +0100
commit36ac4d0ad5bd5d2623e0c83a69899cbd0926315e (patch)
treea8294834db6faf39e642040aa0b0d5b78390bebb /spec/scansion
parent0a11d53f81d33de026024e624f062cf73f6fd006 (diff)
parent76fa7586ef490a4a6ea87a541ed1a5f09aa1f272 (diff)
downloadprosody-36ac4d0ad5bd5d2623e0c83a69899cbd0926315e.tar.gz
prosody-36ac4d0ad5bd5d2623e0c83a69899cbd0926315e.zip
Merge 0.11->trunk
Diffstat (limited to 'spec/scansion')
-rw-r--r--spec/scansion/mam_prefs_prep.scs36
-rw-r--r--spec/scansion/prosody.cfg.lua3
2 files changed, 38 insertions, 1 deletions
diff --git a/spec/scansion/mam_prefs_prep.scs b/spec/scansion/mam_prefs_prep.scs
new file mode 100644
index 00000000..9589ec65
--- /dev/null
+++ b/spec/scansion/mam_prefs_prep.scs
@@ -0,0 +1,36 @@
+# mod_mam shold apply JIDprep in prefs
+
+[Client] Romeo
+ jid: romeo@localhost
+ password: password
+
+-----
+
+Romeo connects
+
+Romeo sends:
+ <iq id="lx2" type="set">
+ <prefs xmlns="urn:xmpp:mam:2" default="roster">
+ <always>
+ <jid>JULIET@MONTAGUE.LIT</jid>
+ </always>
+ <never>
+ <jid>MONTAGUE@MONTAGUE.LIT</jid>
+ </never>
+ </prefs>
+ </iq>
+
+Romeo receives:
+ <iq id="lx2" type="result">
+ <prefs xmlns="urn:xmpp:mam:2" default="roster">
+ <always>
+ <jid>juliet@montague.lit</jid>
+ </always>
+ <never>
+ <jid>montague@montague.lit</jid>
+ </never>
+ </prefs>
+ </iq>
+
+Romeo disconnects
+
diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua
index 8d6e7c0a..fd742db6 100644
--- a/spec/scansion/prosody.cfg.lua
+++ b/spec/scansion/prosody.cfg.lua
@@ -26,7 +26,7 @@ modules_enabled = {
"time"; -- Let others know the time here on this server
"ping"; -- Replies to XMPP pings with pongs
"register"; -- Allow users to register on this server using a client and change passwords
- --"mam"; -- Store messages in an archive and allow users to access it
+ "mam"; -- Store messages in an archive and allow users to access it
--"csi_simple"; -- Simple Mobile optimizations
-- Admin interfaces
@@ -65,6 +65,7 @@ insecure_open_authentication = "Yes please, I know what I'm doing!"
storage = "memory"
+mam_smart_enable = true
-- For the "sql" backend, you can uncomment *one* of the below to configure:
--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.