| ||||||||
Election 2006 (and beyond): Digital Copyright Canada
From: Russell McOrmond <russell_-at-_flora.ca>
To: Wayne Smith <wayne_-at-_wayneon.ca>
Date: Thu, 13 Nov 2003 14:17:29 -0500 (EST)
Wayne,
I'm copying the FLORA helpdesk with this letter so that this information
can be archived there.
http://www.flora.org/flora/help/
If you have more questions please consider subscribing to that list so
that others can help and benefit from our discussion.
List,
Wayne was asking how to set up Majordomo so that messages from certain
people or with other attributes would be bounced to the moderator rather
than going to the list. The options in the config file for that are the
taboo_* options.
All the detailed documentation for Majordomo is at
http://www.flora.org/flora/help/listmanagers.shtml specifically
http://www.flora.org/flora/help/list-owner-info.txt
What you do first is do a:
config <list> <password>
Retrieves a self-documenting configuration file for
the list <list>. The <password> can be the password
contained in the file <list>.passwd or the
admin_password in the configuration file.
You then take the resulting text message, save to disk and edit the
options you want to edit.
For instance, I use the following to cause file attachments to be
bounced to me:
# taboo_body [regexp_array] (undef) <resend>
# If any line of the body matches one of these regexps, then the
# message will be bounced for review.
taboo_body << END
/^Content-Type: application\//i
/^Content-Type: image\//i
/^Content-Type: text\/html/i
END
# taboo_headers [regexp_array] (undef) <resend>
# If any of the headers matches one of these regexps, then the
# message will be bounced for review.
taboo_headers << END
/^Content\-Type\:\s+application/i
/^Content\-Type\:\s+text\/html/i
/^Content\-Type\:\s+image\//i
/^Content\-Disposition\:\s+attachment/i
/^Content\-Transfer\-Encoding\:\s+base64/i
/^Content\-Transfer\-Encoding\:\s+quoted\-printable/i
/^Content\-Type\:\s+multipart/i
/^Disposition\-Notification\-To/i
/^X\-MS-Attachment\:\s+winmail.dat/i
END
You can have patterns that would match a specific email address in the
From: line or any other pattern that you wish.
Pattern matching is done using PERL regular expressions, which
are documented at:
http://www.perldoc.com/perl5.8.0/pod/perlrequick.html
Once you are done with the options you use the newconfig command to send
your config file (the entire config file, not just the options you
changed) back to Majordomo. Remember that it can *NOT* be a file
attachment and must be inline in a plain text message. Do not let your
software wrap long lines as that too can cause you problems for your
config file.
newconfig <list> <password>
Validates and installs a new configuration file. It reads
everything after the "newconfig" command to end-of-message or
the word "EOF" on a line by itself as the new info for the
list. The config file is expected to be a complete config
file as returned by "config". Incremental changing of the
config file is not yet supported. As soon as the config file
is validated and installed its settings are available for
use. This is useful to remember if you have multiple commands
in your mail message since they will be subject to the
settings of the new config file. If there is an error in the
config file (incorrect value...), the config file will not be
accepted and the error message identifying the problem line(s)
will be returned to the sender. Note that only the error
messages are returned to the sender not the entire config
file, so it would be a good idea to keep a copy of your
outgoing email message.
Hope that helps. If there are further questions please send them to me
and the helpdesk so we can move forward.
> Wayne
---
Russell McOrmond, Internet Consultant: <http://www.flora.ca/>
Ottawa residents go to the polls on Monday, November 10, 2003
Democracy is not for spectators - it is your right and duty as citizens
to participate! http://weblog.flora.org/search.php3?topic_id=52
| Please read the FLORA.org Terms and Conditions before you submit information to FLORA.org | |
|
(USA) (Canada) |
|