Skip to content

Commit e09fe94

Browse files
Sympa authorsikedas
authored andcommitted
Updating man.
1 parent 9663f74 commit e09fe94

File tree

6 files changed

+186
-73
lines changed

6 files changed

+186
-73
lines changed

manual/man/Sympa-Internals.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ To know details of each module, run:
221221

222222
- [Sympa::Scenario](./Sympa-Scenario.3.md)
223223

224-
TBD
224+
Authorization scenarios
225225

226226
- [Sympa::Spindle](./Sympa-Spindle.3.md)
227227

manual/man/Sympa-Scenario.3.md

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
---
2+
title: 'Sympa::Scenario(3)'
3+
---
4+
5+
# NAME
6+
7+
Sympa::Scenario - Authorization scenarios
8+
9+
# SYNOPSIS
10+
11+
use Sympa::Scenario;
12+
13+
my $scenario = Sympa::Scenario->new($list, 'send', name => 'private');
14+
my $result = $scenario->authz('md5', {sender => $sender});
15+
16+
# DESCRIPTION
17+
18+
[Sympa::Scenario](./Sympa-Scenario.3.md) provides feature of scenarios which perform authorization
19+
on functions of Sympa software against users and clients.
20+
21+
## Methods
22+
23+
- new ( $that, $function, \[ name => $name \],
24+
\[ dont\_reload\_scenario => 1 \] )
25+
26+
_Constructor_.
27+
Creates a new [Sympa::Scenario](./Sympa-Scenario.3.md) instance.
28+
29+
Parameters:
30+
31+
- $that
32+
33+
Context of scenario, list or domain
34+
(note that scenario does not have site context).
35+
36+
- $function
37+
38+
Specifies scenario function.
39+
40+
- name => $name
41+
42+
Specifies scenario name.
43+
If the name was not given, it is taken from list/domain configuration.
44+
See ["Scenarios"](#scenarios) for details.
45+
46+
- dont\_reload\_scenario => 1
47+
48+
If set, won't check if scenario files were updated.
49+
50+
Returns:
51+
52+
A new [Sympa::Scenario](./Sympa-Scenario.3.md) instance.
53+
54+
- authz ( $auth\_method, \\%context, \[ debug => 1\] )
55+
56+
_Instance method_.
57+
Return the action to perform for 1 sender
58+
using 1 auth method to perform 1 function.
59+
60+
Parameters:
61+
62+
- $auth\_method
63+
64+
'smtp', 'md5', 'pgp', 'smime' or 'dkim'.
65+
Note that \`pgp\` has not been implemented.
66+
67+
- \\%context
68+
69+
A hashref containing information to evaluate scenario (scenario context).
70+
71+
- debug => 1
72+
73+
Adds keys in the returned hashref.
74+
75+
Returns:
76+
77+
A hashref containing following items.
78+
79+
- {action}
80+
81+
'do\_it', 'reject', 'request\_auth',
82+
'owner', 'editor', 'editorkey' or 'listmaster'.
83+
84+
- {reason}
85+
86+
Defined if {action} is 'reject' and in case `reject(reason='...')`:
87+
Key for template authorization\_reject.tt2.
88+
89+
- {tt2}
90+
91+
Defined if {action} is 'reject' and in case `reject(tt2='...')` or
92+
`reject('...tt2')`:
93+
Mail template name to be sent back to request sender.
94+
95+
- {condition}
96+
97+
The checked condition (defined if debug is set).
98+
99+
- {auth\_method}
100+
101+
The checked auth\_method (defined if debug is set).
102+
103+
- get\_current\_title ( )
104+
105+
_Instance method_.
106+
Gets the title of the scenarioin the current language context.
107+
108+
- is\_purely\_closed ( )
109+
110+
_Instance method_.
111+
Returns true value if the scenario obviously returns "reject" action.
112+
113+
- to\_string ( )
114+
115+
_Instance method_.
116+
Returns source text of the scenario.
117+
118+
## Functions
119+
120+
- get\_scenarios ( $that, $function )
121+
122+
_Function_.
123+
Gets all scenarios beloging to context $that and function $function.
124+
125+
- request\_action ( $that, $function, $auth\_method, \\%context,
126+
\[ name => $name \], \[ dont\_reload\_scenario => 1 \], \[ debug => 1\] )
127+
128+
_Function_. Obsoleted on Sympa 6.2.42. Use authz() method instead.
129+
130+
## Attributes
131+
132+
Instance of [Sympa::Scenario](./Sympa-Scenario.3.md) has these attributes:
133+
134+
- {context}
135+
136+
Context given by new().
137+
138+
- {function}
139+
140+
Name of function.
141+
142+
- {name}
143+
144+
Scenario name.
145+
146+
- {file\_path}
147+
148+
Full path of scenario file.
149+
150+
## Scenarios
151+
152+
A scenario file is named as _`function`_`.`_`name`_,
153+
where _`function`_ is one of predefined function names, and
154+
_`name`_ distinguishes policy.
155+
156+
If new() is called without `name` option, it is taken from configuration
157+
parameter of context. Some functions don't have corresponding configuration
158+
parameter and `name` options for them are mandatory.
159+
160+
# SEE ALSO
161+
162+
[sympa\_scenario(5)](./sympa_scenario.5.md).
163+
164+
# HISTORY
165+
166+
authz() method obsoleting request\_action() function introduced on
167+
Sympa 6.2.41b.

manual/man/Sympa-Template.3.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ Instance of [Sympa::Template](./Sympa-Template.3.md) may have following attribut
8383
_Read only_.
8484
Error occurred at the last execution of parse, or `undef`.
8585

86-
- {plugins}
87-
88-
TBD.
89-
9086
- {subdir}, {lang}, {lang\_only}
9187

9288
TBD.

manual/man/Sympa-WWW-Session.3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ Session store is used to keep users' personal data.
146146
- decrypt\_session\_id ( )
147147

148148
_Function_.
149-
TBD.
149+
Deprecated.
150150

151151
- encrypt\_session\_id ( )
152152

153153
_Function_.
154-
TBD.
154+
Deprecated.
155155

156156
- list\_sessions ( )
157157

manual/man/list_config.5.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,60 +2245,6 @@ Time ranges when inclusion is not allowed
22452245

22462246
None.
22472247

2248-
### `include_voot_group`
2249-
2250-
VOOT group inclusion
2251-
2252-
- Multiple occurrences allowed
2253-
2254-
#### `include_voot_group.name`
2255-
2256-
short name for this source
2257-
2258-
- Format:
2259-
2260-
/`.+`/
2261-
2262-
- Default:
2263-
2264-
None.
2265-
2266-
#### `include_voot_group.user`
2267-
2268-
user
2269-
2270-
- Format:
2271-
2272-
/`\S+`/
2273-
2274-
- Default:
2275-
2276-
None, _mandatory_.
2277-
2278-
#### `include_voot_group.provider`
2279-
2280-
provider
2281-
2282-
- Format:
2283-
2284-
/`\S+`/
2285-
2286-
- Default:
2287-
2288-
None, _mandatory_.
2289-
2290-
#### `include_voot_group.group`
2291-
2292-
group
2293-
2294-
- Format:
2295-
2296-
/`\S+`/
2297-
2298-
- Default:
2299-
2300-
None, _mandatory_.
2301-
23022248
### `ttl`
23032249

23042250
Inclusions timeout

manual/man/sympa.conf.5.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2887,6 +2887,20 @@ Format of values is a string without spaces including "y" for years, "m" for mon
28872887

28882888
None.
28892889

2890+
#### `shared_feature`
2891+
2892+
Enable shared repository
2893+
2894+
- Default:
2895+
2896+
`off`
2897+
2898+
- Overrides:
2899+
2900+
Virtual domain
2901+
2902+
If set to "on", list owners can open shared repository.
2903+
28902904
#### `default_shared_quota`
28912905

28922906
Default disk quota for shared repository
@@ -3199,7 +3213,7 @@ Quiet subscriptions policy
31993213

32003214
None.
32013215

3202-
Global policy for quiet subscriptions: "on" means that subscriptions will never send a notice to the subscriber, "off" will enforce a notice sending, "optional" (default) let use the list policy.
3216+
Global policy for quiet subscriptions: "on" means that subscriptions will never send a notice to the subscriber, "off" will enforce a notice sending, and "optional" (default) allows the use of the list policy.
32033217

32043218
## S/MIME and TLS
32053219

@@ -3803,16 +3817,6 @@ Default timeout between two action-triggered synchronizations of list members wi
38033817

38043818
None.
38053819

3806-
#### `voot_feature`
3807-
3808-
- Default:
3809-
3810-
`off`
3811-
3812-
- Overrides:
3813-
3814-
None.
3815-
38163820
#### `edit_list`
38173821

38183822
- Default:
@@ -3873,7 +3877,7 @@ EXPERIMENTAL! Allow users to delete their account. If enabled, shows a "delete m
38733877

38743878
None.
38753879

3876-
Account deletion usubscribe the users from his/her lists and remove him/her from lists ownership. Only usable by users using internal authentication (i.e. no LDAP, no SSO). See https://github.com/sympa-community/sympa/issues/300 for details
3880+
Account deletion unsubscribes the users from his/her lists and removes him/her from lists ownership. It is only available to users using internal authentication (i.e. no LDAP, no SSO...). See https://github.com/sympa-community/sympa/issues/300 for details
38773881

38783882
# FILES
38793883

0 commit comments

Comments
 (0)