aboutsummaryrefslogtreecommitdiff
path: root/src/mod_offline.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add details about XEP implementations to some protocol attributesBadlop2022-11-071-1/+1
|
* Remove unused macro definitions detected by rebar3_hankBadlop2022-09-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | ?OFFLINE_TABLE_LOCK_THRESHOLD is unused: definition and usage added in 4103f30812ed99c984a2fdb16aabca139c9255d7 definition copied, and usage moved to mod_offline_mnesia, in 901d2e0aed83d195a4d1cf2929114b07dcac0dd8 definition and usage removed in mod_offline_mnesia in d88e4d495ffc2ae950f77e440aa7c5d06c864309 this definition looks useless ?VERSION_MULTICAST is unused: added in 0cf8d1fa6e931367b63b133396478593146a8d07 it was never used ?DISCO_QUERY_TIMEOUT is unused: added in 0cf8d1fa6e931367b63b133396478593146a8d07 it was never used ?FEATURE/1 is unused: added in 0cf8d1fa6e931367b63b133396478593146a8d07 usage removed in bc33a3873dbb0828714eef69094213575fc979b6 ?DEFAULT_MAX_USERS_PRESENCE is unused: added in f817762cc48c13476a531bc40059cd17aea4cf0b usage removed in ba2b650464bd3aae2b6b0f3a3177476360cb6d08 ?CT_XML is unused: added in 46568fb9596d8203c635477b30c91d2928847dea removed in 3dc55c6d47e3093a6147ce275c7269a7d08ffc45
* Define batch delete function types in coresponding behavioursPaweł Chmielowski2022-06-171-1/+6
|
* Clarify mod_offline's use_mam_for_storage optionBadlop2022-04-131-10/+8
|
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Use specific syntax so modules and top-level will be linksBadlop2021-08-231-4/+4
| | | | | | If we use _`whatever`_ here in ejabberd man pages, it is converted to *`whatever`* in markdown, and docs.ejabberd.im/Makefile converts to the proper links
* Allow storing non-composing x:events in offlinePaweł Chmielowski2021-08-041-0/+10
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Don't do double utf-8 conversion on translated strings in str:formatPaweł Chmielowski2020-11-091-1/+1
| | | | | | | This caused garbled text in some places in webadmin when using language that used characters > 128. Thanks to chengshq for noticing this and providing preliminary patch.
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* Mark dangerous buttons with CSS (#3363)Badlop2020-08-241-8/+11
|
* Fix some English typosBadlop2020-04-211-2/+2
|
* Update links to the ejabberd Docs page in WebAdminBadlop2020-04-141-1/+1
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-1/+117
| | | | | | | Several documentation callbacks (doc/0 and mod_doc/0) are implemented and `ejabberdctl man` command is added to generate a man page. Note that the command requires a2x to be installed (which is a part of asciidoc package).
* Omit push notifications if offline storage failedHolger Weiss2020-01-051-20/+14
| | | | | | | | | This commit removes the 'store_offline_message' hook which didn't allow mod_push to suppress notifications when storing an offline message failed (due to the offline spool size limit being exceeded or due to database issues). Fixes #3120.
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-4/+4
|
* Fix some links to Guide in WebAdmin and add new ones (#3003)Badlop2019-08-271-3/+2
|
* Avoid using ! in ejabberd_router and mod_offlineEvgeny Khramtsov2019-07-031-1/+1
|
* Invalidate proper cache when using mam for offline in pop_messagesPaweł Chmielowski2019-07-011-9/+1
|
* Make count_offline_messages cache work when offline uses mam for storagePaweł Chmielowski2019-07-011-58/+106
| | | | | This also replace existing cache for checking if spool is empty with this cache.
* Cache number of offline messagesEvgeny Khramtsov2019-06-301-37/+118
|
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-2/+2
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-16/+18
| | | | | | | | | | | | | Now every such string MUST be encapsulated into ?T() macro. The macro itself is defined in include/translate.hrl. Example: -module(foo). -export([bar/1]). -include("translate.hrl"). bar(Lang) -> translate:translate(Lang, ?T("baz")).
* Make option 'validate_stream' globalEvgeny Khramtsov2019-06-211-2/+2
|
* Get rid of "well-known" typeEvgeny Khramtsov2019-06-151-7/+4
|
* Use new configuration validatorEvgeny Khramtsov2019-06-141-52/+45
|
* Change implementation of mod_offline use_mam_for_storage19.05Paweł Chmielowski2019-05-281-48/+45
| | | | | | | | | | | | | | Previous version was trying to determine range of messages that should be fetched from mam by storing time when last user resource disconnected. But that had couple edge cases that could cause problems, for example in case of node crash we could not store information about user disconnect and with that we didn't have data to initiate mam query. New version don't track user disconnects, but simply ensure that we have timestamp of first message that is gonna be put in storage, after some measurements cost of that check with caching on top is not that costly, and as much more robust i decided to introduce that change.
* When applying limit of max msgs in spool check only spool sizePaweł Chmielowski2019-05-071-3/+7
|
* Do not store mucsub wrapped messages with no-store hint in offline storagePaweł Chmielowski2019-05-061-24/+31
| | | | | | We already don't store those messages in mam and we don't store messages that aren't wrapped with that hint in offline, so it make sense to extend it also to mucsub messages.
* Set from/to in activity marker messagesPaweł Chmielowski2019-05-021-1/+1
|
* Always store ActivityMarker messagesPaweł Chmielowski2019-05-021-3/+11
|
* Don't issue count/message fetch queries for offline from mam when not neededPaweł Chmielowski2019-05-021-7/+36
|
* Fix offline from mam on mnesiaPaweł Chmielowski2019-04-291-1/+3
|
* Properly handle infinity as max number of message in mam offline storagePaweł Chmielowski2019-04-291-2/+3
|
* Sort messages by stanza_id when using mam storage in mod_offlinePaweł Chmielowski2019-04-291-6/+21
|
* Return correct value from count_offline_messages with mam storage optionPaweł Chmielowski2019-04-291-2/+10
|
* Make mod_offline put msg ignored by mam in spool when mam storage is onPaweł Chmielowski2019-04-291-2/+3
|
* Add mod_offline option for fetching data from mam instead of from spool tablePaweł Chmielowski2019-04-261-66/+232
| | | | | | | | | | | This commit introduces `use_mam_for_storage` option that take boolean argument. Enabling it will make mod_offline not use spool table for storing offline message, but instead will use mam archive to retrieve messages stored when offline. Enabling this option have couple drawback currently, only messages that were stored in mam will be available, most of flexible message retrieval queries don't work (those that allow retrieval/deletion of messages by id).
* Flip default bounce_groupchat flag value, muc will drop bounces anywayPaweł Chmielowski2019-03-141-1/+1
|
* Add option to mod_offline to make it not bounce mucsub/groupchat messagesPaweł Chmielowski2019-03-141-11/+37
|
* Replace code using p1_time_compat wrapper with native functionsPaweł Chmielowski2019-02-271-4/+4
| | | | | | | Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* mod_offline: make some database callbacks optionalEvgeny Khramtsov2019-01-081-2/+10
|
* We are handling groupchat in other branch nowPaweł Chmielowski2018-12-201-1/+0
|
* Add option to mod_offline that would allow storing group chat messagesPaweł Chmielowski2018-12-201-8/+20
|
* Move some functions from xmpp back into ejabberdHolger Weiss2018-10-251-3/+3
|
* Guard against pres_last=undefined in mod_offlinePaweł Chmielowski2018-06-201-2/+2
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-1/+0
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-12/+2
| | | | | | | | | | | | | | | | | Since we got rid of all bottle-neck processes and we have a connection pool for every database, the option is no longer needed and in fact is detrimental: in practice what you get is just a bunch of overloaded processes in the IQ handlers pool no matter how much you increase the `iqdisc` value. Given that there are close to zero operators understanding the meaning of the option and, hence, not using it all, it's not simply deprecated but completely removed. The commit also deprecates the following functions: - gen_iq_handler:add_iq_handler/6 - gen_iq_handler:handle/5 - gen_iq_handler:iqdisc/1