Kim Alvefur
c5272aa642
mod_mam: Move stanza ID namespace to a common variable
2017-02-14 18:51:20 +01:00
Kim Alvefur
187cb3ac5e
mod_mam: Correct import of util.rsm
2017-02-04 00:57:34 +01:00
Kim Alvefur
b54ba72351
mod_mam: Use correct local name for util.jid.prepped_split
2017-01-23 19:32:07 +01:00
Kim Alvefur
fcd827853a
mod_mam: Normalize copyright headers
2017-01-23 19:18:15 +01:00
Kim Alvefur
8adfea849c
mod_mam: Change store name to "archive" but make it configurable for people who have data in "archive2"
2017-01-11 13:08:50 +01:00
Kim Alvefur
d15ec87e01
mod_mam: Allow a set of namespaces to be stripped from stored stanzas, default to chat states ( fixes #763 )
2016-12-19 08:44:56 +01:00
Kim Alvefur
41c458eac5
mod_mam: Report correct count of results for forward queries
...
#results is only correct for backwards queries, the table is unused for
forward queries.
2019-07-13 19:57:43 +02:00
Kim Alvefur
3a4f54f014
mod_mam: Move final log message to end of query procedure
2019-07-11 23:29:59 +02:00
Kim Alvefur
c8528f9004
mod_mam: Log RSM parameters
...
Helps when trying to figure out why some queries fail, ie when paging
using an archive id that doesn't exist.
2019-07-11 23:27:45 +02:00
Kim Alvefur
006983308d
mod_mam: Log query failure reason
...
The storage engine will usually make a lot of noise for serious errors,
but not always.
2019-07-11 23:27:01 +02:00
Kim Alvefur
460efc6b3e
mod_mam: Log more details in final log message
...
Saves you from counting messages sent
2019-07-11 23:31:51 +02:00
Kim Alvefur
c733e10ba2
mod_mam: Include query id in final log message
...
Should make it easier to find related log messages
2019-07-11 23:31:13 +02:00
Kim Alvefur
b396fc61d5
mod_mam: Use stanza id in log message as fallback if no query id
2019-07-11 23:26:02 +02:00
Kim Alvefur
219d20f1ba
mod_mam: Include username that performed query
...
Not always easy to find from surrounding logs
2019-07-11 23:30:58 +02:00
Kim Alvefur
6ab914c24a
mod_mam: Make log message more compact
2019-07-11 23:22:59 +02:00
Kim Alvefur
0f41a59a96
Merge 0.11->trunk
2019-05-27 19:17:12 +02:00
Kim Alvefur
fcda870911
mod_mam: Propagate item-not-found to client ( fixes #1325 )
2019-05-05 07:16:05 +02:00
Kim Alvefur
f2b74c28b0
mod_mam: If archive:delete() gives a number, this should be the number of deleted items
2016-11-22 18:19:55 +01:00
Kim Alvefur
34cb7607de
mod_mam: Add XEP-0359 tag
2016-11-19 18:29:08 +01:00
Kim Alvefur
99ad7ae5e6
mod_mam: Filter out spoofed XEP-0359 tags
2016-11-19 18:28:59 +01:00
Kim Alvefur
dbd0d9fea7
mod_mam: Find out which party is the user and which is the 'with' earlier
2016-11-19 18:28:28 +01:00
Kim Alvefur
913534e983
mod_mam: Alter hints processing
2016-11-19 18:27:28 +01:00
Kim Alvefur
bebab75dda
mod_mam: Add some comments explaining archive expiry
2016-11-19 18:26:09 +01:00
Kim Alvefur
b39bde756e
mod_mam: Remove legacy feature advertising
2016-11-18 10:44:56 +01:00
Kim Alvefur
c02ea74909
mod_mam: Decrease priority to zero
2016-11-18 10:44:27 +01:00
Kim Alvefur
58cc91cd45
mod_mam: Update to XEP-0313 v0.5.1
2016-11-04 13:59:49 +01:00
Kim Alvefur
7f28edd090
mod_mam: Use is_stanza from util.stanza
2016-11-28 07:35:49 +01:00
Kim Alvefur
e7a31b6e19
util.rsm: Move out from mod_mam directory
2016-11-26 21:50:06 +01:00
Kim Alvefur
0ff95b1616
mod_mam: Import from prosody-modules
2016-11-04 13:48:21 +01:00
Kim Alvefur
2fed4a88c2
mod_mam: On quota hit, separately delete by time and by item count
...
This is to work around a possible SQL issue where offsets and time
stamps don't interact correctly.
2019-03-22 02:22:21 +01:00
Kim Alvefur
9dce1de767
mod_mam: Trim archive when quota has been exceeded
2017-11-07 18:58:52 +01:00
Kim Alvefur
cabf11ab26
Merge 0.11->trunk
2019-03-22 17:58:08 +01:00
Kim Alvefur
de09c462e5
mod_mam: Fix operator precedence (thanks mimi89999)
2019-01-20 20:24:17 +01:00
Kim Alvefur
bdfc36fc8c
mod_mam: Handle expiry of messages that expire in the middle of the cut-off day
2019-01-06 09:44:55 +01:00
Kim Alvefur
2ac6994955
mod_mam: Measure how long it takes to run the message expiry job job
2019-01-06 09:34:59 +01:00
Kim Alvefur
3738686f06
mod_mam: Fix word order in log message
2019-01-04 10:14:55 +01:00
Kim Alvefur
c686907261
mod_mam: Perform message expiry based on building an index by date
...
For each day, store a set of users that have new messages. To expire
messages, we collect the union of sets of users from dates that fall
outside the cleanup range.
The previous algoritm did not work well with many users, especially with
the default settings.
2019-01-03 17:25:43 +01:00