Commands: foreach

  Format: foreach { <list> | <pattern> }+

Executes a set of commands on one or more lists.  listmanager will
accept a list of commands after "foreach" which will be executed on
all lists that match the patterns/list names.  The list is terminated by
either the keyword "end" or the end of the input.

If you specify a list name, it doesn't need to match the case of the list
name in listmanager.  However, if you specify a pattern (e.g. a string
containing the wildcard "*" character), case must match.

For example:

	foreach *-announce random-stuff
	mflags somebody@yourdomain.com owner
	default metoo
	end

This will perform the commands "mflags somebody@yourdomain.com owner" and
"default metoo" on all lists matching the name "*-announce" as well as on
the "random-stuff" list.

NOTE: You may not use "foreach" inside a script being processed by a "source"
command.

See also: source
