source: trunk/third/nmh/man/dist.man @ 12455

Revision 12455, 5.2 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1.\"
2.\" %nmhwarning%
3.\" $Id: dist.man,v 1.1.1.1 1999-02-07 18:14:19 danw Exp $
4.\"
5.\" include the -mh macro file
6.so %etcdir%/tmac.h
7.\"
8.TH DIST %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10dist \- redistribute a message to additional addresses
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14dist
15\%[+folder] \%[msg]
16\%[\-annotate] \%[\-noannotate]
17.br
18\%[\-inplace] \%[\-noinplace]
19\%[\-form\ formfile]
20.br
21\%[\-draftfolder\ +folder] \%[\-draftmessage\ msg]
22.br
23\%[\-nodraftfolder]
24\%[\-editor\ editor] \%[\-noedit]
25.br
26\%[\-whatnowproc\ program] \%[\-nowhatnowproc]
27.br
28\%[\-version]
29\%[\-help]
30.in -.5i
31.SH DESCRIPTION
32\fIDist\fR is similar to \fIforw\fR.  It prepares the specified message
33for redistribution to addresses that (presumably) are not on the original
34address list.
35
36The default message form contains the following elements:
37
38.nf
39.in +.5i
40.ne 10
41.eo
42.so %etcdir%/distcomps
43.ec
44.in -.5i
45.fi
46
47If a file named \*(lqdistcomps\*(rq exists in the user's nmh directory, it
48will be used instead of this default form.  You may specify an alternate
49forms file with the switch `\-form\ formfile'.  The form used will be
50prepended to the message being resent.
51
52If the draft already exists, \fIdist\fR will ask you as to the disposition
53of the draft.  A reply of \fBquit\fR will abort \fIdist\fR, leaving the
54draft intact; \fBreplace\fR will replace the existing draft with a blank
55skeleton; and \fBlist\fR will display the draft.
56
57Only those addresses in \*(lqResent\-To:\*(rq, \*(lqResent\-cc:\*(rq,
58and \*(lqResent\-Bcc:\*(rq will be sent.  Also, a
59\*(lqResent\-Fcc:\ folder\*(rq will be honored (see \fIsend\fR\0(1)).
60Note that with \fIdist\fR, the draft should contain only
61\*(lqResent\-xxx:\*(rq fields and no body.  The headers and the body of
62the original message are copied to the draft when the message is sent.
63Use care in constructing the headers for the redistribution.
64
65If the `\-annotate' switch is given, the  message being distributed will
66be annotated with the lines:
67
68     Resent:\ date
69     Resent:\ addrs
70
71where each address list contains as many lines as required.  This
72annotation will be done only if the message is sent directly from
73\fIdist\fR.  If the message is not sent immediately from \fIdist\fR,
74\*(lqcomp \-use\*(rq may be used to re\-edit and send the constructed
75message, but the annotations won't take place.  Normally annotations are
76done inplace in order to preserve any links to the message.  You may use
77the '\-noinplace' switch to change this.
78
79See \fIcomp\fR\0(1) for a description of the `\-editor' and `\-noedit'
80switches.  Note that while in the editor, the message being resent
81is available through a link named \*(lq@\*(rq (assuming the default
82\fIwhatnowproc\fR\0).  In addition, the actual pathname of the message is
83stored in the environment variable \fB$editalt\fR, and the pathname of
84the folder containing the message is stored in the environment variable
85\fB$mhfolder\fR.
86
87The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke
88the \fInmh\fR draft folder facility.  This is an advanced (and highly
89useful) feature.  Consult the \fImh-draft\fR(5) man page for more
90information.
91
92Upon exiting from the editor, \fIdist\fR will invoke the \fIwhatnow\fR
93program.  See \fIwhatnow\fR\0(1) for a discussion of available
94options.  The invocation of this program can be inhibited by using the
95`\-nowhatnowproc' switch.  (In truth of fact, it is the \fIwhatnow\fR
96program which starts the initial edit.  Hence, `\-nowhatnowproc' will
97prevent any edit from occurring.)
98.Fi
99^%etcdir%/distcomps~^The standard message skeleton
100^or <mh\-dir>/distcomps~^Rather than the standard skeleton
101^$HOME/\&.mh\(ruprofile~^The user profile
102^<mh\-dir>/draft~^The draft file
103.Pr
104^Path:~^To determine the user's nmh directory
105.Ps
106^Current\-Folder:~^To find the default current folder
107.Ps
108^Draft\-Folder:~^To find the default draft\-folder
109.Ps
110^Editor:~^To override the default editor
111.Ps
112^fileproc:~^Program to refile the message
113.Ps
114^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
115.Sa
116comp(1), forw(1), repl(1), send(1), whatnow(1)
117.De
118`+folder' defaults to the current folder
119.Ds
120`msg' defaults to cur
121.Ds
122`\-noannotate'
123.Ds
124`\-nodraftfolder'
125.Ds
126`\-inplace'
127.Co
128
129If a folder is given, it will become the current folder.  The message
130distributed will become the current message.
131.Hi
132\fIDist\fR originally used headers of the form \*(lqDistribute\-xxx:\*(rq
133instead of \*(lqResent\-xxx:\*(rq.  In order to conform with the ARPA
134Internet standard, RFC\-822, the \*(lqResent\-xxx:\*(rq form is now used.
135\fIDist\fR will recognize \*(lqDistribute\-xxx:\*(rq type headers and
136automatically convert them to \*(lqResent\-xxx:\*(rq.
137.Bu
138\fIDist\fR does not \fIrigorously\fR check the message being distributed
139for adherence to the transport standard, but \fIpost\fR called by
140\fIsend\fR does.  The \fIpost\fR program will balk (and rightly so) at
141poorly formatted messages, and \fIdist\fR won't correct things for you.
142
143If \fIwhatnowproc\fR is \fIwhatnow\fR, then \fIdist\fR uses a built\-in
144\fIwhatnow\fR, it does not actually run the \fIwhatnow\fR program.
145Hence, if you define your own \fIwhatnowproc\fR, don't call it
146\fIwhatnow\fR since \fIdist\fR won't run it.
147
148If your current working directory is not writable, the link named
149\*(lq@\*(rq is not available.
150.En
Note: See TracBrowser for help on using the repository browser.