mk-procmailrc - Generate procmailrc from lists.def |
mk-procmailrc - Generate procmailrc from lists.def
mk-procmailrc mk-procmailrc [options]
This program generates the main procmailrc used by the
filter-spool program. The procmailrc is generated
from <mharc-root>/lib/lists.def
.
This program is typically invoked by calling make
from
the mharc root directory with configuration options specified
in <mharc-root>/lib/config.sh
.
The list definition file, <mharc-root>/lib/lists.def
,
controls how the procmailrc used by filter-spool
is generated. The format of the file is simple and more convenient
than writing the procmailrc file yourself.
The basic format of the file is as follows:
#
are ignored.
Lines with the following format:
Option-Name: Option-Value
is an option.
Address
options can be specified
for an archive if a list has more than one known address (e.g. due
to migration) or the archive is a collection of multiple lists.
0
or 1
) if author specified archiving permission
is honored. The author can request no archiving should be done
by defining one of the the following header fields:
Restrict: no-external-archive X-no-archive: yes
If Check-No-Archive
is enabled, a message to the list with either
field defined will not be archived.
0
or 1
) if CVS commit messages should be
archived separately.
Use this option for development lists that have CVS project commits mailed to the list, and you want to avoid cluttering regular discussion mail.
Subject:
prefix denoting CVS commits to the list.
This option is only used if CVS-Commits
is specified.
0
or 1
) if generated rule should be final.
I.e. If a message matches, further rules will not be examined.
Use this option to short-circuit messages from being stored in multiple archives. For example, you may want to catch messages cross-posted to a special address to only be archived in a special archive and not any of the regular archives.
Another example is if you use the special Name
``.catch
''
(or the -catch-archive
setting described in OPTIONS).
Using ``.catch
'' is handy for Final
definitions to pre-catch
messages that should not be placed in any list archive.
Address
where a list can only be donoted by the From:
field of messages.
This is fairly common for one-way lists, like newsletters, where
subscribers receive list messages but cannot post to the list.
Multiple From-Address
options can be specified if a list has more
than one known address (e.g. due to migration) or the archive is a
collection of multiple lists.
0
or 1
) if links to raw archives should exist.
If set to 1
, links will not be created or disabled. The
default value for this option is 0
.
Use this option if your HTML archives have been customized to obscure address to prevent address harvesting.
0
or 1
) if searching should be disabled.
If set to 1
, no search index is created and the $SEARCH-FORM$
custom MHonArc resource variable will be set to the empty string.
year
or month
. If Period is not defined, month
is the default.
*
,
!
, et. al. This option can be specified multiple times.
CAUTION: Exercise caution when using this option, especially if
CVS-Commits
is true. When CVS-commits
is true, an additionaly
rule already exists to check for the CVS-Subject-Prefix
setting.
## In this definition, we define multiple addresses to check. Name: mhonarc-users Description: MHonArc Users Address: mhonarc-users@mhonarc.org Address: mhonarc@ncsa.uiuc.edu Address: mhonarc@rosat.mpe-garching.mpg.de
## This definition defines a list that receives CVS commits and those ## commits should be separated into a special archive as to not ## pollute the discussion messages with cvs commit messages Name: mhonarc-dev Description: MHonArc Development Address: mhonarc-dev@mhonarc.org CVS-Commits: 1 CVS-Subject-Prefix: CVS:
You should never have to invoke this program with any options since
config.sh
specifies any options used by this program. However,
for advanced uses, or you do not care if you mess things up, the
following options are available:
-catch-address
mail-address-catch-archive
, and will supercede
-catch-archive
, if defined.
If this option is not specified, the CATCH_ADDRESS
variable in
config.sh
is used.
-catch-archive
nameCATCH_ARCHIVE
variable in
config.sh
is used, else the name ``.catch
'' is used.
Note: If you use this option, it is recommended that the name
starts with a .
(a dot). This insures that no search index is built
and it will not be listed in the all-lists page.
-disable-catch-archive
CAUTION: Care should be used when using this option since any message that does not match a normal rule will be lost.
-final-dest
mailboxFolder: /dev/null
'' destinations in the procmail log
and it does not indicate that a message was lost.
Message copying is done inorder to properly archive a message that has
been cross-posted to multiple lists. Message copying is not done for
archives with the Final
option set to 1, for CVS commit archives,
or for messages that are captured by the catch archive.
This option is generally only used for debugging purposes.
If -final-dest
is not specified, the
FINAL_MSG_DESTINATION
variable in config.sh
is used, else
/dev/null
is used.
-help
-home
pathnameRoot pathname of software and archives. If not specified,
SW_ROOT
variable in config.sh
is used, else the parent directory
that containing this program is used.
-man
-mbox-dir
pathnameMBOX_DIR
variable in config.sh
is used, else -home/mbox
is used.
-msgid-cache-size
number-of-bytesIf this option is not specified, the MSGID_CACHE_SIZE
variable
in config.sh
is used, else 16384 will be used.
-out
pathnamePROCMAILRC
variable in config.sh
is used, else -home/procmailrc.mharc
is used.
If ``-'' is the pathname, then the procmailrc will be dumped to standard out.
-procmail-path
pathname-listprocmail
to use. If this option is not
specified, the PROCMAIL_PATH
variable in config.sh
is used.
<mharc-root>/lib/lists.def
<mharc-root>/lib/config.sh
$Id: mk-procmailrc,v 1.22 2003/01/10 21:58:00 ehood Exp $
Earl Hood, earl@earlhood.com
This program is part of the mharc archiving system and comes with ABSOLUTELY NO WARRANTY and may be copied only under the terms of the GNU General Public License, which may be found in the mharc distribution.
mk-procmailrc - Generate procmailrc from lists.def |