10 date 90.04.05.15.12.30; author sources; state Exp;
15 date 90.03.22.11.31.03; author sources; state Exp;
20 date 90.03.20.19.41.40; author sources; state Exp;
25 date 90.03.20.17.35.58; author sources; state Exp;
30 date 90.03.20.17.20.47; author sources; state Exp;
48 dist \- redistribute a message to additional addresses
52 \%[\-annotate] \%[\-noannotate]
53 \%[\-draftfolder\ +folder] \%[\-draftmessage\ msg] \%[\-nodraftfolder]
54 \%[\-editor\ editor] \%[\-noedit]
56 \%[\-inplace] \%[\-noinplace]
57 \%[\-whatnowproc\ program] \%[\-nowhatnowproc]
60 \fIDist\fR is similar to \fIforw\fR.
61 It prepares the specified
62 message for redistribution to addresses that (presumably) are
63 not on the original address list.
65 The default message form contains the following elements:
71 .so @@(MHETCPATH)/distcomps
76 If the file named \*(lqdistcomps\*(rq exists in the user's MH directory,
77 it will be used instead of this form.
78 In either case, the file specified by `\-form\ formfile' will be
80 The form used will be prepended to the message being resent.
82 If the draft already exists,
83 \fIdist\fR will ask you as to the disposition of the draft.
84 A reply of \fBquit\fR will abort \fIdist\fR, leaving the draft intact;
85 \fBreplace\fR will replace the existing draft with a blank skeleton;
86 and \fBlist\fR will display the draft.
88 Only those addresses in \*(lqResent\-To:\*(rq, \*(lqResent\-cc:\*(rq, and
89 \*(lqResent\-Bcc:\*(rq will be sent.
90 Also, a \*(lqResent\-Fcc:\ folder\*(rq will be honored (see \fIsend\fR\0(1)).
91 Note that with \fIdist\fR, the draft should contain only
92 \*(lqResent\-xxx:\*(rq fields and no body.
93 The headers and the body of the original message are copied to the draft when
95 Use care in constructing the headers for the redistribution.
97 If the `\-annotate' switch is given, the message being
98 distributed will be annotated with the lines:
103 where each address list contains as many lines as required.
105 will be done only if the message is sent directly from \fIdist\fR.
106 If the message is not sent immediately from \fIdist\fR,
107 \*(lqcomp \-use\*(rq may be used to re\-edit and send the constructed message,
108 but the annotations won't take place.
109 The '\-inplace' switch causes annotation to
110 be done in place in order to preserve links to the annotated message.
112 See \fIcomp\fR\0(1) for a description of the `\-editor' and `\-noedit'
114 Note that while in the editor,
115 the message being resent is available through a link named \*(lq@@\*(rq
116 (assuming the default \fIwhatnowproc\fR\0).
117 In addition, the actual pathname of the message is stored in the envariable
119 and the pathname of the folder containing the message is stored in the
120 envariable \fB$mhfolder\fR.
122 The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke the
123 \fIMH\fR draft folder facility.
124 This is an advanced (and highly useful) feature.
125 Consult the \fBAdvanced Features\fR section of the \fIMH\fR manual for more
128 Upon exiting from the editor,
129 \fIdist\fR will invoke the \fIwhatnow\fR program.
130 See \fIwhatnow\fR\0(1) for a discussion of available options.
131 The invocation of this program can be inhibited by using the `\-nowhatnowproc'
134 it is the \fIwhatnow\fR program which starts the initial edit.
135 Hence, `\-nowhatnowproc' will prevent any edit from occurring.)
137 ^@@(MHETCPATH)/distcomps~^The message skeleton
138 ^or <mh\-dir>/distcomps~^Rather than the standard skeleton
139 ^$HOME/\&.mh\(ruprofile~^The user profile
140 ^<mh\-dir>/draft~^The draft file
142 ^Path:~^To determine the user's MH directory
144 ^Current\-Folder:~^To find the default current folder
146 ^Draft\-Folder:~^To find the default draft\-folder
148 ^Editor:~^To override the default editor
150 ^fileproc:~^Program to refile the message
152 ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions
154 comp(1), forw(1), repl(1), send(1), whatnow(1)
156 `+folder' defaults to the current folder
158 `msg' defaults to cur
166 If a folder is given, it will become the current folder.
167 The message distributed will become the current message.
169 \fIDist\fR originally used headers of the form \*(lqDistribute\-xxx:\*(rq
170 instead of \*(lqResent\-xxx:\*(rq. In order to conform with the
171 ARPA Internet standard, RFC\-822,
172 the \*(lqResent\-xxx:\*(rq form is now used.
173 \fIDist\fR will recognize \*(lqDistribute\-xxx:\*(rq type headers and
174 automatically convert them to \*(lqResent\-xxx:\*(rq.
176 \fIDist\fR does not \fIrigorously\fR check the message being
177 distributed for adherence to the transport standard,
178 but \fIpost\fR called by \fIsend\fR does.
179 The \fIpost\fR program will balk (and rightly so) at poorly formatted messages,
180 and \fIdist\fR won't correct things for you.
182 If \fIwhatnowproc\fR is \fIwhatnow\fR,
183 then \fIdist\fR uses a built\-in \fIwhatnow\fR,
184 it does not actually run the \fIwhatnow\fR program.
185 Hence, if you define your own \fIwhatnowproc\fR,
186 don't call it \fIwhatnow\fR since \fIdist\fR won't run it.
188 If your current working directory is not writable,
189 the link named \*(lq@@\*(rq is not available.
196 @put things back, do .NA stuff another way
210 .TH DIST 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
220 @fixup for makewhatis