comp - compose a message
|comp [+folder] [msgs] [-form formfile] [-use | -nouse] [-editor editor] [-whatnowproc program] [-Version] [-help]|
Comp is used to create a new message to be mailed. It copies a message form to the draft being composed and then invokes an editor on the draft (unless the -editor switch with an empty string argument is given, in which case the initial edit is suppressed).
The default message form contains the following elements:
To: Cc: Fcc: +sent Subject: --------
If a file named ‘components’ exists in the user’s mmh directory, it will be used instead of this form. You may specify an alternate forms file with the switch -form formfile.
You may also start comp using the contents of an existing message as the form. If you supply a +folder or msg argument, that message will be used as the message form. You may not supply both a -form formfile and a +folder or msg argument. The line of dashes or a blank line must be left between the header and the body of the message for the message to be identified properly when it is sent (see send(1)).
The switch -use directs comp to continue editing an already started message. That is, if a comp (or dist, repl, or forw) is terminated without sending the draft, the draft can be edited again via ‘comp -use’. If -use is given, msg is located within the draft folder. A +folder argument is not allowed together with -use.
If the draft already exists, comp will ask you as to the disposition of the draft. A reply of quit will abort comp, leaving the draft intact; replace will replace the existing draft with the appropriate form; list will display the draft; use will use the draft for further composition; and refile +folder will file the draft in the given folder, and give you a new draft with the appropriate form. (The +folder argument to refile is required.)
Consult the mh-draft(7) man page for more information.
The -editor editor switch indicates the editor to use for the initial edit. Upon exiting from the editor, comp will invoke the whatnow program. See whatnow(1) for a discussion of available options.
^/etc/mmh/components~^The standard message skeleton ^or $HOME/.mmh/components~^Rather than the standard skeleton ^$HOME/.mmh/profile~^The user profile ^+drafts~^The draft folder
^Path:~^To determine the user’s mail storage ^Draft-Folder:~^To set the default draft folder ^Editor:~^To override the default editor ^Msg-Protect:~^To set mode when creating a new message (draft) ^whatnowproc:~^Program to ask the ‘What now?’ questions
‘+folder’ defaults to the current folder ‘msg’ defaults to the current message ‘-nouse’