summaryrefslogtreecommitdiff
path: root/doc/guide.tex
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-06-15 17:43:18 +0000
committerBadlop <badlop@process-one.net>2009-06-15 17:43:18 +0000
commite0370d89b4564ef2b83ce02d12106a6ace6323ae (patch)
treeefb86192e403efbda9f79cd5cfa7f2e5c62fbc7e /doc/guide.tex
parentReplace TYPE/1 with is_TYPE/1 (EJAB-922) (diff)
Add option to restrict max offline messages by Access and ACL (EJAB-951)
New option for mod_offline: access_max_user_messages. The old option user_max_messages is no longer supported. SVN Revision: 2162
Diffstat (limited to '')
-rw-r--r--doc/guide.tex31
1 files changed, 27 insertions, 4 deletions
diff --git a/doc/guide.tex b/doc/guide.tex
index 1406b052..66747bbe 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -3132,12 +3132,35 @@ online again. Thus it is very similar to how email works. Note that
(see section~\ref{ejabberdctl}).
\begin{description}
- \titem{user\_max\_messages}\ind{options!user\_max\_messages}This option
- is use to set a max number of offline messages per user (quota). Its
- value can be either \term{infinity} or a strictly positive
- integer. The default value is \term{infinity}.
+ \titem{access\_max\_user\_messages}\ind{options!access\_max\_user\_messages}
+ This option defines which access rule will be enforced to limit
+ the maximum number of offline messages that a user can have (quota).
+ When a user has too many offline messages, any new messages that he receive are discarded,
+ and a resource-constraint error is returned to the sender.
+ The default value is \term{max\_user\_offline\_messages}.
+ Then you can define an access rule with a syntax similar to
+ \term{max\_user\_sessions} (see \ref{configmaxsessions}).
\end{description}
+This example allows power users to have as much as 5000 offline messages,
+administrators up to 2000,
+and all the other users up to 100.
+\begin{verbatim}
+{acl, admin, {user, "admin1", "localhost"}}.
+{acl, admin, {user, "admin2", "example.org"}}.
+{acl, poweruser, {user, "bob", "example.org"}}.
+{acl, poweruser, {user, "jane", "example.org"}}.
+
+{access, max_user_offline_messages, [ {5000, poweruser}, {2000, admin}, {100, all} ]}.
+
+{modules,
+ [
+ ...
+ {mod_offline, [ {access_max_user_messages, max_user_offline_messages} ]},
+ ...
+ ]}.
+\end{verbatim}
+
\makesubsection{modprivacy}{\modprivacy{}}
\ind{modules!\modprivacy{}}\ind{Blocking Communication}\ind{Privacy Rules}\ind{protocols!RFC 3921: XMPP IM}