@@ -9,7 +9,7 @@ gromox\-mbop \(em Mailbox operations utility
99.SH Global options
1010.TP
1111\fB \- c \fP
12- Continuous operation mode. If a command in a series (e.g. with for \- all \- users )
12+ Continuous operation mode. If a command in a series (e.g. with foreach.* )
1313fails, do not stop.
1414.TP
1515\fB \- d \fP \fI /var/lib/gromox/user/1/2 \fP
@@ -32,11 +32,11 @@ clear\-rwz: delete IPM.RuleOrganizer FAI messages from the inbox
3232.IP \(bu 4
3333delmsg: issue "delete_message" RPCs for a mailbox
3434.IP \(bu 4
35- echo\- username: return username (diagnostic for use with for \- all \- users )
35+ echo\- username: return username (for use with foreach.* )
3636.IP \(bu 4
3737emptyfld: remove objects from folders
3838.IP \(bu 4
39- for \- all \- users : iterate over all users
39+ foreach.* : iterate over security objects
4040.IP \(bu 4
4141get\- freebusy: test FB schedule lookups
4242.IP \(bu 4
@@ -172,9 +172,38 @@ gromox\-mbop \-u
[email protected] emptyfld \-\-soft \-\-nuke\-folders DELETED
172172.IP \(bu 4
173173Timed deletion of trash:
174174gromox
\- mbop
\- u
[email protected] emptyfld
\- Rt 1week
\-\- soft DELETED
175- .SH for \- all \- users
175+ .SH foreach.*
176176.SS Synopsis
177- \fB for \- all \- users \fP [\fB \- j \fP \fI jobs \fP ] \fI command \fP [command-args...]
177+ \fB foreach. \fP\fI filter \fP [\fB \. \fP\fI filter \fP ]* [\fB \- j \fP \fI jobs \fP ]
178+ \fI command \fP [command-args...]
179+ .SS Description
180+ Iterates over security objects and executes one of the other commands
181+ repeatedly. Filter specifications limit the types of security objects.
182+ .SS Filters
183+ .IP \(bu 4
184+ secobj: limit to objects that can be used in ACLs
185+ .IP \(bu 4
186+ user: regular users
187+ .IP \(bu 4
188+ dl: distribution lists
189+ .IP \(bu 4
190+ sharedmb: shared mailboxes
191+ .IP \(bu 4
192+ room: room objects
193+ .IP \(bu 4
194+ equipment: equipment objects
195+ .IP \(bu 4
196+ contact: GAB contact objects
197+ .IP \(bu 4
198+ active: active entities
199+ .IP \(bu 4
200+ susp: entities marked as "suspended"
201+ .IP \(bu 4
202+ deleted: entities marked as "deleted"
203+ .IP \(bu 4
204+ mb: entity has a mailbox directory defined
205+ .IP \(bu 4
206+ here: entity has current server as homeserver
178207.SS Options
179208.TP
180209\fB \- j \fP \fI jobs \fP
@@ -187,7 +216,7 @@ Default: \fI1\fP
187216Pseudoaction for running one of the other subcommand (e.g. ping, unload.)
188217.SS Examples
189218.IP \(bu 4
190- Command concatenation: gromox\- mbop for \- all \- users \\( purge\- softdelete -r /
219+ Command concatenation: gromox\- mbop foreach.mb.local \\( purge\- softdelete -r /
191220\\) \\( purge\- datafiles \\)
192221.SH get\- freebusy
193222.SS Synopsis
0 commit comments