man > dist(1mh)

πŸ“ NAME

dist - distribute an nmh message to additional addresses

πŸš€ Quick Reference

Use CaseCommandDescription
πŸ“€ Distribute current message with default formdistPrepare message for redistribution to new addresses
πŸ“„ Use custom form templatedist -form formfileSpecify alternate distcomps file
🏷️ Annotate original messagedist -annotateAdd Resent: lines to the redistributed message
πŸ“ Edit draft before sendingdist -editor editorOverride default editor for draft
πŸ“ Save copy to folderdist -fcc +folderAutomatically file copy of sent message
🚫 Skip edit and whatnowdist -noedit -nowhatnowprocSend immediately without interactive editing
πŸ’Ύ Use draft folder facilitydist -draftfolder +folder -draftmessage msgManage multiple drafts

πŸ“‹ SYNOPSIS

dist [-help] [-version] [+folder] [msg] [-form formfile] [-annotate | -noannotate] [-inplace
     | -noinplace] [-draftfolder +folder] [-draftmessage msg] [-nodraftfolder] [-editor edi‐
     tor] [-noedit] [-width columns] [-from address] [-to address] [-cc address] [-fcc
     +folder] [-whatnowproc program] [-nowhatnowproc] [-atfile] [-noatfile]

πŸ“– DESCRIPTION

dist is similar to forw. It prepares the specified message for redistribution to addresses that (presumably) are not on the original address list.

The default message form contains the following elements:

Resent-From: {from switch} or <Local-Mailbox> or <username@hostname>
Resent-To: {to switch} or blank
Resent-cc: {cc switch} or blank
Resent-fcc: {fcc switch} or blank

If a file named β€œdistcomps” exists in the user's nmh directory, it will be used instead of this default form. You may specify an alternate forms file with the switch -form formfile. Forms are processed via the nmh template system; see mh-format(5) for details. Components from the redistributed message are available as standard component escapes in the forms file.

πŸ”€ Component Escapes

In addition to the standard mh-format(5) escapes, the following component escapes are also supported:

EscapeReturnsDescription
fccstringAny folders specified with -fcc folder
nmh-fromstringAddresses specified with -from address
nmh-tostringAddresses specified with -to address
nmh-ccstringAddresses specified with -cc address

See the forw(1) man page for descriptions of the -from, -to, -cc, and -fcc switches.

πŸ“ Draft Handling

If the draft already exists, dist will ask you as to the disposition of the draft. A reply of quit will abort dist, leaving the draft intact; replace will replace the existing draft with a blank skeleton; and list will display the draft.

Only those addresses in β€œResent-To:”, β€œResent-cc:”, and β€œResent-Bcc:” will be sent. Also, a β€œResent-Fcc: folder” will be honored (see send(1)). Note that with dist, the draft should contain only β€œResent-xxx:” fields and no body. The headers and the body of the original message are copied to the draft when the message is sent. Use care in constructing the headers for the redistribution.

Because the draft is minimal, the prompter(1) editor is quite useful with dist.

🏷️ Annotation

If the -annotate switch is given, the message being distributed will be annotated with the lines:

Resent: date
Resent: addrs

where each address list contains as many lines as required. This annotation will be done only if the message is sent directly from dist. If the message is not sent immediately from dist, β€œcomp -use” may be used to re-edit and send the constructed message, but the annotations won't take place. Normally annotations are done in place in order to preserve any links to the message. You may use the -noinplace switch to change this.

✏️ Editor and Draft Folder

See comp(1) for a description of the -editor and -noedit switches. Note that while in the editor, with -atfile and if the current directory is writable, the message being resent is available through a link named β€œ@” (assuming the default whatnowproc). In addition, the actual pathname of the message is stored in the environment variable $editalt, and the pathname of the folder containing the message is stored in the environment variable $mhfolder. The creation of the β€œ@” file is controlled via the -atfile and -noatfile options.

The -draftfolder +folder and -draftmessage msg switches invoke the nmh draft folder facility. This is an advanced (and highly useful) feature. Consult the mh-draft(5) man page for more information.

πŸ”„ whatnow Program

Upon exiting from the editor, dist will invoke the whatnow program. See whatnow(1) for a discussion of available options. The invocation of this program can be inhibited by using the -nowhatnowproc switch. (In fact, it is the whatnow program which starts the initial edit. Hence, -nowhatnowproc will prevent any edit from occurring.)

πŸ“ FILES

βš™οΈ PROFILE COMPONENTS

πŸ”— SEE ALSO

βš™οΈ DEFAULTS

πŸ”„ CONTEXT

If a folder is given, it will become the current folder. The message distributed will become the current message.

πŸ“œ HISTORY

dist originally used headers of the form β€œDistribute-xxx:” instead of β€œResent-xxx:”. In order to conform with the ARPA Internet standard, RFC 822, the β€œResent-xxx:” form is now used. dist will recognize β€œDistribute-xxx:” type headers and automatically convert them to β€œResent-xxx:”.

πŸ› BUGS

dist(1mh)
πŸ“ NAME πŸš€ Quick Reference πŸ“‹ SYNOPSIS πŸ“– DESCRIPTION
πŸ”€ Component Escapes πŸ“ Draft Handling 🏷️ Annotation ✏️ Editor and Draft Folder πŸ”„ whatnow Program
πŸ“ FILES βš™οΈ PROFILE COMPONENTS πŸ”— SEE ALSO βš™οΈ DEFAULTS πŸ”„ CONTEXT πŸ“œ HISTORY πŸ› BUGS

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 07:45 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^