On Fri, 28 Aug 1998, William R. Dickson <wdickson@nwnexus.net> wrote:
Your opening paragraph had lots of bait for the administrivia checks. :-(
Anyway... Nice job on this. :)
...
>createlist list owner (nocreate, noheader, force, quiet)
...
> Examples: createlist scooters modgirl@foo.com
> createlist-noheader-quiet scooters modgirl@foo.com
Maybe mention that the owner must be a valid email address or a
comma-separated list of such addresses and that the @hostname part can
be omitted for accounts on the machine from which mj2 delivers mail.
Example: createlist scooters modgirl@foo.com,majordomo-owner
Also, does each list have an 'owners' sublist defining its owners?
Maybe mention that to add or remove owners, use auxsubscribe and
auxunsubscribe for the 'owners' sublist of the list in question.
...
>who list [regexp]
>-----------------
> Returns all members of the list. If a regular expression is given as an
> argument, only matches will be returned.
>
> Examples: who scooters posters
> who scooters posters \@foo\.com
These examples show a sublist. Isn't that only for auxwho?
Auxwho doesn't have an optional [regexp] argument. Shouldn't it
have one to be consistent?
And now a few words on the "whether or not to escape @ in regexps" issue,
referring to Jason's comment about even numbers of backslashes, etc.
It shouldn't make any difference at all whether there are \'s in front
of the @, since the user is supposed to be knowledgable about regexps
but need not know that perl is the engine underlying mj2. Since @'s
have no regexp meaning, they should always be escaped. So:
For non-regexps, use \Q$stringvar\E to escape all punctuation.
For regexps, substitute all @'s with \@, unconditionally.
Also, since arbitrary statements can be interpolated into a string,
maybe escape {'s that follow a $. For example, this 'string' example
will cause the date to be printed with no return to perl:
perl -e '$v="${\(exec(qq(date)))}"; print "Will not appear"'
so if someone tried a
who scooters ${\(exec(qq(date)))}
would that have the "intended effect" in majordomo2? Of course,
executing the date command is innocuous. Other commands are less so.
John Van Essen <vanes002@umn.edu>
Follow-Ups:
|
|