
config samplelist list-password
writeconfig samplelist list-password
Note: You can print this out and use it as a guide but
DON"T edit and resubmit this version.
It is long and wordy (and easy to make a mistake!).
newconfig samplelist list-password
# The configuration file for a majordomo mailing list.
[complete list of config options here]
EOF
NOTE: Be sure you include the entire configuration, NOT just the values
you want to change or you will lose most of your list settings.

This option is set to yes by default, if you are confident that your users will not send random command messages to the list directly, you can set this to no which will eliminate the problem of messages with a command like word (help, subscribe, etc.) in the first 20 lines getting bounced to you for approval.
# noadvertise [regexp_array] (undef)
# If the requestor name matches one of these regexps, then the list
# will not be listed in the output of a lists command. Noadvertise
# overrides advertise.
These two options can be used to limit the scope of reporting in response to the user issued lists command. For example:
Would limit reporting to users whose email addresses end in uoregon.edu
while this expression would mean your list is not advertised to anyone. Note that both this options include some odd characters (/\* etc.). Majordomo supports what are called "perl style regular expressions" or regex. Basics of regex syntax can be found in the perlre man page
If you wish to allow large messages (attachments) to be sent to the list without owner approval you can increase this number. Please remember that many users have a limited disk quota and a few large messages can cause mail problems!
Use this option to insert a standard footer for all list messages like so:
You might want to include a pointer to a web page, a Mhonarc archive, or instructions for basic user commands.
This opton is set to your listname if you've created a closed list. You may choose to add additional existing list files here (a digest version of your list, related lists which may contribute announcements to the larger discussion, etc.). If you are a darkwing user, you can also point at a file in your home directory:
restrict_post = testlist:testlist-digest:/home3/llynch/test-list.postthis file might contain addresses of users who want to post announcements to the list without belonging to the list, but it can also be used to allow a user to post from several addresses while recieving list mail at only one.
This option is set to no for UO lists, which means that addresses may include
user names or mailer information ("Lucy Lynch"
# taboo_headers [regexp_array] (undef)
These options can be used to create a useful set of filters for your list. They
require the use of regex expressions but they provide a set of powerful tools.
For example:
taboo_body << END
If you're interested in playing with taboo_body recipes, this information will
help you get started:
# If any line of the body matches one of these regexps, then the
# message will be bounced for review.
# If any of the headers matches one of these regexps, then the
# message will be bounced for review.
/^Content-Type: application\/(msword|wordperfect|octet-stream)/i
END
/^Content-type:.*application/i
/^Content-type: image\//i
/^Content-type: text\/html/i
/^Content-type:.*(exe|zip|gif|jpg|html)/i
/^Content-transfer-encoding:.*base64/i
END
/^[ ]*[file]*name=\".*\.[vV][bB][sS]\"/
END
/username\@domainname\.com/
/username\@/
END
/^Content-Type: application\/(msword|wordperfect|pdf|octet-stream)/i
||| | | | | | |||
||| | | | | | ||ignore case
||| | | | | | |end expression
||+-----|-----+ +--------+ +------------------------------------+
|| | | |
|| | | pattern subtypes
|| | |
|| | pattern type
|| |
|| Header field
||
|begin at the head of a line (following newline char)
start expression
The following metacharacters have meanings similar to grep -E:
\ Quote the next metacharacter
^ Match the beginning of the line
. Match any character (except newline)
$ Match the end of the line (or before newline at the end)
| Alternation
() Grouping
[] Character class
The following standard quantifiers are recognized:
* Match 0 or more times
+ Match 1 or more times
? Match 1 or 0 times
{n} Match exactly n times
{n,} Match at least n times
{n,m} Match at least n but not more than m times
If you want it to match the minimum number of times possible, follow the
quantifier with a ?. Note that the meanings don't change, just the
"greediness":
*? Match 0 or more times
+? Match 1 or more times
?? Match 0 or 1 time
{n}? Match exactly n times
{n,}? Match at least n times
{n,m}? Match at least n but not more than m times
Because patterns are processed as double quoted strings, the following also
work:
\t tab (HT, TAB)
\n newline (LF, NL)
\r return (CR)
\f form feed (FF)
\a alarm (bell) (BEL)
\e escape (think troff) (ESC)
\033 octal char (think of a PDP-11)
\x1B hex char
\c[ control char
\l lowercase next char (think vi)
\u uppercase next char (think vi)
\L lowercase till \E (think vi)
\U uppercase till \E (think vi)
\E end case modification (think vi)
\Q quote (disable) regexp metacharacters till \E
In addition, perl defines the following:
\w Match a "word" character (alphanumeric plus _)
\W Match a non-word character
\s Match a whitespace character
\S Match a non-whitespace character
\d Match a digit character
\D Match a non-digit character
Note that \w matches a single alphanumeric character, not a whole word. To
match a word you'd need to say \w+. You may use \w, \W, \s, \S, \d and \D
within character classes (though not as either end of a range).
http://lists.uoregon.edu/~majordom/wks/get-config.html
Last modified: Fri Sep 26 14:03:17 PDT 2003