NAME

mh-skel - skeleton script for writing scripts to manipulate MH/NMH mail messages

SYNOPSIS

  mh-skel [options] <msg1> ... <msgN>

DESCRIPTION

mh-skel is a skeleton script to assist in writing scripts that will operate on mail messages stored in MH/NMH. It will not do anything itself, but must be filled out with additional code to handle whatever functions are required.

The command-line-handling code will follow the description given in the following section. That can, of course, be changed as required.

MAIL FOLDERS

By default, the inbox mail folder will be searched for messages. A mail folder may be specified on the command line by preceding the folder name with a plus sign. For example, "mh-skel +papers 42" will do something with message 42 in the papers mail folder.

Multiple mail folders may be given on a single command line, but only the last folder will be used. Thus, "mh-skel +docs 42 +verbiage 88 +papers" will not generate an error, but only messages 42 and 88 will be handled in the papers folder.

AVAILABLE DATA AND ROUTINES

This section describes the global data and routines in mh-skel that are used by the predefined routines, and may be used by routines created for new MH/NMH scripts.

Globals

The following globals in mh-skel are used by the predefined routines, and may be used by routines created for new MH/NMH scripts.

Utility-Specific Routines

The following routines in mh-skel probably will need to be modified for different utilities. They must be modified as required for each specific MH/NMH helper script.

Utility-Common Routines

The following routines in mh-skel probably do not need to be modified for different utilities. However, they should be examined when creating a new MH/NMH utility to ensure that this is true.

OPTIONS

mh-skel takes the following options:

AUTHOR

Wayne Morrison, wayne@waynemorrison.com

LICENSE

Copyright 2014, 2017 Wayne Morrison

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SEE ALSO

nmh(1), mhpath(1)

Getopt::Long(3)