[ Renaut Ryckaert writes: ]
> I'm running several mailing lists with majordomo 1.93 on Solaris 2.4.
> But I'm confused with the 'advertise' and the 'noadvertise' commands
> and the syntax of their parameters. Could someone give an example to
> hide a list from the world except one domain ?
advertise << END
noadvertise << END
These are (limited) Perl regular expressions. The example above would
limit the list's visibility via the 'lists' command to users/hosts in
the "cediti.be" domain. Only addresses matching the advertise regular
expression are allowed and, since noadvertise is blank, no subset of
allowed addresses is disallowed.
The '/' are required delimiters. A '.' matches any character and the
'+' modifier requires it to match 1 or more times. The '\' escapes
the following '@' character from being interpolated by Perl as a list
variable introducer, so '@' must match literally. The '*' modifier
requires the second '.' to match zero or more times (thus it's allowed
to match the "null string"). The string 'cediti\.be' must match
literally (the '\' escapes the '.' to make it literal, so the matched
string is 'cediti.be') and the '$' matches the end of the matched
string, thus nothing may follow 'cediti.be'.
A couple things to note about advertise/noadvertise: Subscribed
addresses are always allowed and the matching is case-dependent, i.e.
an address of firstname.lastname@example.org will match, but user@cediti.BE will not.
Also, there's a bug in 1.93 in file majordomo at lines 884 and 894 that
requires literal '@' and '$' to be escaped (as I've shown). Changing the
'qq(' on those two lines to 'q(' removes that requirement.
Dave Wolfe *Not a spokesman for Motorola*
Motorola MMTG 6501 Wm. Cannon Dr. W. OE112 Austin TX 78735-8598
From: Renaut Ryckaert <Renaut.Ryckaert@cediti.be>