From ce2545144845a393150638904a4a27e94f62659d Mon Sep 17 00:00:00 2001 From: Shantonu Sen Date: Sun, 31 Dec 2000 08:19:20 +0000 Subject: [PATCH] Updating comp-forw --- man/Makefile.in | 4 + man/comp.man | 2 +- man/flist.man | 3 +- man/fmtdump.man | 68 ++++--- man/folder.man | 379 ++++++++++++++++++++++++-------------- man/forw.man | 539 +++++++++++++++++++++++++++++++++++-------------------- 6 files changed, 638 insertions(+), 357 deletions(-) diff --git a/man/Makefile.in b/man/Makefile.in index 78c26ec..24d63c2 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -122,6 +122,10 @@ man.sed: Makefile echo ' s,%components%,,g' >> $@ echo '/%distcomps%/r $(top_srcdir)/etc/distcomps' >> $@ echo ' s,%distcomps%,,g' >> $@ + echo '/%forwcomps%/r $(top_srcdir)/etc/forwcomps' >> $@ + echo ' s,%forwcomps%,,g' >> $@ + echo '/%mhl_forward%/r $(top_srcdir)/etc/mhl.forward' >> $@ + echo ' s,%mhl_forward%,,g' >> $@ # ========= INSTALL TARGETS ========= diff --git a/man/comp.man b/man/comp.man index 353a4d9..610e93b 100644 --- a/man/comp.man +++ b/man/comp.man @@ -132,7 +132,7 @@ draft folder facility. This is an advanced (and highly useful) feature. Consult the .BR mh-draft (5) man page for more information. - +.PP The .B \-editor .I editor diff --git a/man/flist.man b/man/flist.man index 4f33e4a..b3449ac 100644 --- a/man/flist.man +++ b/man/flist.man @@ -28,7 +28,8 @@ flist, flists \- list the number of messages in given sequence(s) .HP 5 .B flists is equivalent to -.B flist -all +.B flist +.B \-all .SH DESCRIPTION .B Flist is used to search a list of folders and display the number diff --git a/man/fmtdump.man b/man/fmtdump.man index 0046377..d30098e 100644 --- a/man/fmtdump.man +++ b/man/fmtdump.man @@ -2,41 +2,59 @@ .\" %nmhwarning% .\" $Id$ .\" -.\" include the -mh macro file -.so %etcdir%/tmac.h -.\" -.TH FMTDUMP %manext8% MH.6.8 [%nmhversion%] +.TH FMTDUMP %manext8% "%nmhdate%" MH.6.8 [%nmhversion%] .SH NAME fmtdump \- decode nmh format files .SH SYNOPSIS -.in +.5i -.ti -.5i -%libdir%/fmtdump -\%[\-form\ formatfile] -.br -\%[\-format\ string] -\%[\-version] -\%[\-help] -.in -.5i +.HP 5 +.B %libdir%/fmtdump +.RB [ \-form +.IR formatfile ] +.RB [ \-format +.IR string ] +.RB [ \-version ] +.RB [ \-help ] .SH DESCRIPTION -\fIFmtdump\fR is a program that parses an \fInmh\fP format file and -produces a pseudo-language listing of the how \fInmh\fP interprets -the file. This is useful when debugging a complicated format file. - -The `\-format\ string' and `\-form\ formatfile' switches may be +.B Fmtdump +is a program that parses an +.B nmh +format file and produces a pseudo-language listing of the how +.B nmh +interprets the file. This is useful when debugging a complicated format file. +.PP +The +.B \-format +.I string +and +.B \-form +.I formatfile +switches may be used to specify a format string or format file to read. The string is simply a format string and the file is simply a format file. -See \fImh-format\fR\|(5) for the details. -.Fi +See +.BR mh-format (5) +for the details. + +.SH FILES +.fc ^ ~ +.nf +.ta \w'/usr/local/nmh/etc/ExtraBigFileName 'u ^$HOME/\&.mh\(ruprofile~^The user profile ^%etcdir%/scan.default~^The default format file -.Pr + +.SH "PROFILE COMPONENTS" +.fc ^ ~ +.nf +.ta 2.4i +.ta \w'ExtraBigProfileName 'u ^Path:~^To determine the user's nmh directory -.Sa + +.SH "SEE ALSO" mh-format(5), mh-sequences(8) -.Co + +.SH CONTEXT None -.Bu + +.SH BUGS The output may not be useful unless you are familiar with the internals of the mh-format subroutines. -.En diff --git a/man/folder.man b/man/folder.man index 3eab765..c2b9ff6 100644 --- a/man/folder.man +++ b/man/folder.man @@ -2,72 +2,84 @@ .\" %nmhwarning% .\" $Id$ .\" -.\" include the -mh macro file -.so %etcdir%/tmac.h -.\" .TH FOLDER %manext1% "%nmhdate%" MH.6.8 [%nmhversion%] .SH NAME folder, folders \- set/list current folder/message .SH SYNOPSIS -.in +.5i -.ti -.5i -folder -\%[+folder] \%[msg] -\%[\-all] \%[\-noall] -.br -\%[\-create] \%[\-nocreate] -\%[\-fast] \%[\-nofast] -.br -\%[\-header] \%[\-noheader] -\%[\-recurse] -\%[\-norecurse] -.br -\%[\-total] \%[\-nototal] -\%[\-list] \%[\-nolist] -.br -\%[\-push] \%[\-pop] -\%[\-pack] \%[\-nopack] -\%[\-print] -.br -\%[\-verbose] -\%[\-noverbose] -\%[\-version] -\%[\-help] - -.ti .5i -folders is equivalent to folder -all -.in -.5i +.HP 5 +.B folder +.RI [ +folder ] +.RI [ msgs ] +.RB [ \-all " | " \-noall ] +.RB [ \-create " | " \-nocreate ] +.RB [ \-fast " | " \-nofast ] +.RB [ \-header " | " \-noheader ] +.RB [ \-recurse " | " \-norecurse ] +.RB [ \-total " | " \-nototal ] +.RB [ \-list " | " \-nolist ] +.RB [ \-push " | " \-pop ] +.RB [ \-pack " | " \-nopack ] +.RB [ \-print ] +.RB [ \-verbose " | " \-noverbose ] +.RB [ \-version ] +.RB [ \-help ] +.PP +.HP +.B folders +is equivalent to +.B folder +.B \-all .SH DESCRIPTION - -Since the \fInmh\fR environment is the shell, it is easy to lose track -of the current folder from day to day. When \fIfolder\fR is given the -`\-print' switch (the default), \fIfolder\fR will list the current folder, +Since the +.B nmh +environment is the shell, it is easy to lose track +of the current folder from day to day. When +.B folder +is given the +.B \-print +switch (the default), +.B folder +will list the current folder, the number of messages in it, the range of the messages (low\-high), and the current message within the folder, and will flag extra files if they exist. An example of this summary is: - +.PP +.RS 5 .nf -.if t .in +.5i .ta \w'/rnd/phyl/Mail/EP 'u +\w'has ddd messages 'u +\w'(ddd\-ddd); 'u inbox+ has \016 messages (\0\03\-\022); cur=\0\05. -.re -.if t .in -.5i .fi - -If a `+folder' and/or `msg' are specified, they will become the current -folder and/or message. By comparison, when a `+folder' argument is given, -this corresponds to a \*(lqcd\*(rq operation in the \fIshell\fR; when no -`+folder' argument is given, this corresponds roughly to a \*(lqpwd\*(rq -operation in the \fIshell\fR. - +.RE +.PP +If a +.I +folder +and/or +.I msg +are specified, they will become the current +folder and/or message. By comparison, when a +.I +folder +argument is given, this corresponds to a \*(lqcd\*(rq operation +in the shell; when no +.I +folder +argument is given, this corresponds roughly to a \*(lqpwd\*(rq +operation in the shell. +.PP If the specified (or default) folder doesn't exist, the default action is to query the user as to whether the folder should be created; when standard input is not a tty, the answer to the query is assumed to be \*(lqyes\*(rq. - -Specifying `\-create' will cause \fIfolder\fP to create new folders +.PP +Specifying +.B \-create +will cause +.B folder +to create new folders without any query. (This is the easy way to create an empty folder for -use later.) Specifying `\-nocreate' will cause \fIfolder\fP to exit +use later.) Specifying +.B \-nocreate +will cause +.B folder +to exit without creating a non-existant folder. .\" .\" note - this doesn't work at present @@ -75,17 +87,30 @@ without creating a non-existant folder. .\" a `+folder' and/or `msg' may still be specified .\" to set the current folder and/or message, .\" but the folder summary will not be printed. -.Uh "Multiple Folders" -Specifying `\-all' will produce a summary line for each top-level folder -in the user's nmh directory, sorted alphabetically. (If \fIfolder\fR -is invoked by a name ending with \*(lqs\*(rq (e.g., \fIfolders\fR\0), -`\-all' is assumed). Specifying `\-recurse' with `\-all' will also + +.SS "Multiple Folders" +Specifying +.B \-all +will produce a summary line for each top-level folder +in the user's nmh directory, sorted alphabetically. (If +.B folder +is invoked by a name ending with \*(lqs\*(rq (e.g. +.BR folders ), +.B \-all +is assumed). Specifying +.B \-recurse +with +.B \-all +will also produce a line for all sub-folders. These folders are all preceded by -the read\-only folders, which occur as \*(lqatr\-cur\-\*(rq entries in -the user's \fInmh\fR context. For example, -.ne 9 +the read\-only folders, which occur as +.RI \*(lq atr\-cur\- \*(rq +entries in the user's +.B nmh +context. For example: +.PP +.RS 5 .nf -.if t .in +.5i .ta \w'/rnd/phyl/Mail/EP 'u +\w'has ddd messages 'u +\w'(ddd\-ddd); 'u FOLDER \0\0\0\0\0\0# MESSAGES RANGE CUR (OTHERS) /var/work/folder has \035 messages (\01\-\035); cur=23. @@ -98,102 +123,182 @@ ucom has 124 messages (\01\-124); cur=\06; (others). .ta \w'/rnd/phyl/Mail/EP has 'u TOTAL = 339 messages in 7 folders -.re -.if t .in -.5i .fi - +.RE +.PP The \*(lq+\*(rq after inbox indicates that it is the current folder. -The \*(lq(others)\*(rq indicates that the folder `ucom' has files which +The \*(lq(others)\*(rq indicates that the folder +.I ucom +has files which aren't messages. These files may either be sub\-folders, or files that don't belong under the nmh file naming scheme. - -The header is output if either a `\-all' or a `\-header' switch is -specified. It is suppressed by `\-noheader'. - -The folder and message totals are output if either a `\-all' or a -`\-total' switch is specified. It is suppressed by `\-nototal'. - -If `\-fast' is given, only the folder name (or names in the case of -`\-all') will be listed. (This is faster because the folders need not +.PP +The header is output if either a +.B \-all +or a +.B \-header +switch is specified. It is suppressed by +.BR \-noheader . +.PP +The folder and message totals are output if either a +.B \-all +or a +.B \-total +switch is specified. It is suppressed by +.BR \-nototal . +.PP +If +.B \-fast +is given, only the folder name (or names in the case of +.BR \-all ) +will be listed. (This is faster because the folders need not be read.) - -If a `+folder' is given along with the `\-all' switch, \fIfolder\fR will, -in addition to setting the current folder, list the top\-level subfolders -for the current folder (with `\-norecurse') or list all sub-folders under -the current folder recursively (with `\-recurse'). In this case, if a -`msg' is also supplied, it will become the current message of `+folder'. - -The `\-recurse' switch lists each folder recursively, so use of this -option effectively defeats the speed enhancement of the `\-fast' option, +.PP +If a +.I +folder +is given along with the +.B \-all +switch, +.B folder +will, in addition to setting the current folder, list the top\-level subfolders +for the current folder (with +.BR \-norecurse ) +or list all sub-folders under the current folder recursively (with +.BR \-recurse ). +In this case, if a +.I msg +is also supplied, it will become the current message of +.IR +folder . +.PP +The +.B \-recurse +switch lists each folder recursively, so use of this +option effectively defeats the speed enhancement of the +.B \-fast +option, since each folder must be searched for subfolders. Nevertheless, the combination of these options is useful. - -.Uh "Compacting a Folder" -The `\-pack' switch will compress the message names in the designated -folders, removing holes in message numbering. The `\-verbose' switch -directs \fIfolder\fR to tell the user the general actions that it is +.PP +.SS "Compacting a Folder" +The +.B \-pack +switch will compress the message names in the designated +folders, removing holes in message numbering. The +.B \-verbose +switch directs +.B folder +to tell the user the general actions that it is taking to compress the folder. - -.Uh "The Folder Stack" -The `\-push' switch directs \fIfolder\fR to push the current folder -onto the \fIfolder\-stack\fR, and make the `+folder' argument the -current folder. If `+folder' is not given, the current folder and the -top of the \fIfolder\-stack\fR are exchanged. This corresponds to the -\*(lqpushd\*(rq operation in the \fICShell\fR. - -The `\-pop' switch directs \fIfolder\fR to discard the top of the -\fIfolder\-stack\fR, after setting the current folder to that value. -No `+folder' argument is allowed. This corresponds to the \*(lqpopd\*(rq -operation in the \fICShell\fR. The `\-push' switch and the `\-pop' switch +.PP +.SS "The Folder Stack" +The +.B \-push +switch directs +.B folder +to push the current folder +onto the +.IR folder\-stack , +and make the +.I +folder +argument the current folder. If +.I +folder +is not given, the current folder and the +top of the +.I folder\-stack +are exchanged. This corresponds to the +\*(lqpushd\*(rq operation in the shell. +.PP +The +.B \-pop +switch directs +.B folder +to discard the top of the +.IR folder\-stack , +after setting the current folder to that value. +No +.I +folder +argument is allowed. This corresponds to the \*(lqpopd\*(rq +operation in the shell. The +.B \-push +switch and the +.B \-pop +switch are mutually exclusive: the last occurrence of either one overrides any previous occurrence of the other. Both of these switches also set -`\-list' by default. +.B \-list +by default. +.PP +The +.B \-list +switch directs +.B folder +to list the contents of +the +.IR folder\-stack . +No +.I +folder +argument is allowed. After a successful +.B \-push +or +.BR \-pop , +the +.B \-list +action is taken, unless a +.B \-nolist +switch follows them on the command line. This corresponds +to the \*(lqdirs\*(rq operation in the shell. The +.BR \-push , +.BR \-pop , +and +.B \-list +switches turn off +.BR \-print . -The `\-list' switch directs \fIfolder\fR to list the contents of -the \fIfolder\-stack\fR. No `+folder' argument is allowed. After a -successful `\-push' or `\-pop', the `\-list' action is taken, unless a -`\-nolist' switch follows them on the command line. This corresponds -to the \*(lqdirs\*(rq operation in the \fICShell\fR. The `\-push', -`\-pop', and `\-list' switches turn off `\-print'. -.Fi +.SH FILES +.fc ^ ~ +.nf +.ta \w'/usr/local/nmh/etc/ExtraBigFileName 'u ^$HOME/\&.mh\(ruprofile~^The user profile -.Pr + +.SH "PROFILE COMPONENTS" +.fc ^ ~ +.nf +.ta 2.4i +.ta \w'ExtraBigProfileName 'u ^Path:~^To determine the user's nmh directory -.Ps ^Current\-Folder:~^To find the default current folder -.Ps ^Folder\-Protect:~^To set mode when creating a new folder -.Ps ^Folder\-Stack:~^To determine the folder stack -.\" .Ps .\" ^lsproc:~^Program to list the contents of a folder -.Sa + +.SH "SEE ALSO" refile(1), mhpath(1) -.De -`+folder' defaults to the current folder -.Ds -`msg' defaults to none -.Ds -`\-nofast' -.Ds -`\-noheader' -.Ds -`\-nototal' -.Ds -`\-nopack' -.Ds -`\-norecurse' -.Ds -`\-noverbose' -.Ds -`\-print' is the default if no `\-list', `\-push', or `\-pop' is specified -.Ds -`\-list' is the default if `\-push', or `\-pop' is specified -.Co -If `+folder' and/or `msg' are given, they will become the -current folder and/or message. -.Bu + +.SH "DEFAULTS" +.nf +.RB ` +folder "' defaults to the current folder" +.RB ` msg "' defaults to none" +.RB ` \-nofast ' +.RB ` \-noheader ' +.RB ` \-nototal ' +.RB ` \-nopack ' +.RB ` \-norecurse ' +.RB ` \-noverbose ' +.RB ` \-print "' is the default if no " \-list ", " \-push ", or " \-pop " is specified" +.RB ` \-list "' is the default if " \-push ", or " \-pop " is specified" + +.SH CONTEXT +If +.I +folder +and/or +.I msg +are given, they will become the current folder and/or message. + +.SH BUGS There is no way to restore the default behavior (to ask the user whether to create a non-existant folder) -after `\-create' or `\-nocreate' is given. -.En +after +.B \-create +or +.B \-nocreate +is given. diff --git a/man/forw.man b/man/forw.man index 166d031..e0651b5 100644 --- a/man/forw.man +++ b/man/forw.man @@ -2,205 +2,335 @@ .\" %nmhwarning% .\" $Id$ .\" -.\" include the -mh macro file -.so %etcdir%/tmac.h -.\" .TH FORW %manext1% "%nmhdate%" MH.6.8 [%nmhversion%] .SH NAME forw \- forward messages .SH SYNOPSIS -.in +.5i -.ti -.5i -forw -\%[+folder] \%[msgs] -.br -\%[\-annotate] \%[\-noannotate] -\%[\-form\ formfile] -.br -\%[\-format] \%[\-noformat] -\%[\-filter\ filterfile] -.br -\%[\-inplace] \%[\-noinplace] -\%[\-mime] \%[\-nomime] -.br -\%[\-draftfolder\ +folder] \%[\-draftmessage\ msg] -.br -\%[\-nodraftfolder] -\%[\-editor\ editor] \%[\-noedit] -.br -\%[\-whatnowproc\ program] \%[\-nowhatnowproc] -.br -\%[\-dashstuffing] \%[\-nodashstuffing] -.br -\%[\-build] -\%[\-file msgfile] -.br -\%[\-version] -\%[\-help] - -.ti .5i -forw -\%[+folder] \%[msgs] -\%[\-digest\ list] \%[\-issue\ number] -.br -\%[\-volume\ number] -\%[other\ switches\ for\ \fIforw\fR] -\%[\-help] -.in -.5i +.HP 5 +.B forw +.RI [ +folder ] +.RI [ msgs ] +.RB [ \-annotate " | " \-noannotate ] +.RB [ \-form +.IR formfile ] +.RB [ \-format " | " \-noformat ] +.RB [ \-filter +.IR filterfile ] +.RB [ \-inplace " | " \-noinplace ] +.RB [ \-mime " | " \-nomime ] +.RB [ \-draftfolder +.IR +folder ] +.RB [ \-draftmessage +.IR msg ] +.RB [ \-nodraftfolder ] +.RB [ \-editor +.IR editor ] +.RB [ \-noedit ] +.RB [ \-whatnowproc +.IR program ] +.RB [ \-nowhatnowproc ] +.RB [ \-dashstuffing " | " \-nodashstuffing ] +.RB [ \-build ] +.RB [ \-file +.IR msgfile ] +.RB [ \-version ] +.RB [ \-help ] +.PP +.HP 5 +.B forw +.RI [ +folder ] +.RI [ msgs ] +.RB [ \-digest +.IR list ] +.RB [ \-issue +.IR number ] +.RB [ \-volume +.IR number ] +[other\ switches\ for\ +.BR forw ] +.RB [ \-version ] +.RB [ \-help ] .SH DESCRIPTION -\fIForw\fR may be used to prepare a message containing other messages. - +.B Forw +may be used to prepare a message containing other messages. +.PP It constructs the new message from a forms (components) file, with a body composed of the message(s) to be forwarded. An editor is invoked -as in \fIcomp\fR, and after editing is complete, the user is prompted +as in +.BR comp , +and after editing is complete, the user is prompted before the message is sent. - +.PP The default message form contains the following elements: - +.PP +.RS 5 .nf -.in +.5i -.ne 10 -.eo -.so %etcdir%/forwcomps -.ec -.in -.5i +%forwcomps% .fi - -If a file named \*(lqforwcomps\*(rq exists in the user's nmh directory, +.RE +.PP +If a file named +.RI \*(lq forwcomps \*(rq +exists in the user's nmh directory, it will be used instead of this default form. You may also specify an -alternate forms file with the switch `\-form\ formfile'. - -When If the draft already exists, \fIforw\fR will ask you as to the disposition -of the draft. A reply of \fBquit\fR will abort \fIforw\fR, leaving the -draft intact; \fBreplace\fR will replace the existing draft with a blank -skeleton; and \fBlist\fR will display the draft. - -If the `\-annotate' switch is given, each message being forwarded will -be annotated with the lines +alternate forms file with the switch +.B \-form +.IR formfile . +.PP +If the draft already exists, +.B forw +will ask you as to the disposition +of the draft. A reply of +.B quit +will abort +.BR forw , +leaving the draft intact; +.B replace +will replace the existing draft with a blank skeleton; and +.B list +will display the draft. +.PP +If the +.B \-annotate +switch is given, each message being forwarded will +be annotated with the lines: Forwarded:\ date Forwarded:\ addrs where each address list contains as many lines as required. This annotation will be done only if the message is sent directly from -\fIforw\fR. If the message is not sent immediately from \fIforw\fR, -\*(lqcomp\ \-use\*(rq may be used to re\-edit and send the constructed +.BR forw . +If the message is not sent immediately from +.BR forw , +.RB \*(lq comp +.BR \-use \*(rq +may be used to re\-edit and send the constructed message, but the annotations won't take place. Normally annotations are done inplace in order to preserve any links to the message. You may -change this by using the '\-noinplace' switch. - -See \fIcomp\fR\0(1) for a description of the `\-editor' and `\-noedit' +change this by using the +.B \-noinplace +switch. +.PP +See +.BR comp (1) +for a description of the +.B \-editor +and +.B \-noedit switches. - -Although \fIforw\fR uses a forms (components) file to direct it how to +.PP +Although +.B forw +uses a forms (components) file to direct it how to construct the beginning of the draft, it uses a message filter file to direct it as to how each forwarded message should be formatted in the body of the draft. The filter file for \fIforw\fR should be a standard -form file for \fImhl\fR, as \fIforw\fR will invoke \fImhl\fR to filter -(re\-format) the forwarded messages prior to being output to the body -of the draft. - -The switches `\-noformat', `\-format', and `\-filter\ filterfile' specify -which message filter file to use. - -If `\-noformat' is specified (this is the default), then each forwarded -message is output into the draft exactly as it appears with no \fImhl\fR +form file for +.BR mhl , +as +.B forw +will invoke +.B mhl +to filter (re\-format) the forwarded messages prior to being output to +the body of the draft. +.PP +The switches +.BR \-noformat , +.BR \-format , +and +.B \-filter +.I filterfile +specify which message filter file to use. +.PP +If +.B \-noformat +is specified (this is the default), then each forwarded +message is output into the draft exactly as it appears with no +.B mhl filtering. - -If `\-format' is specified, then a default message filter file is used. +.PP +If +.B \-format +is specified, then a default message filter file is used. This default message filter should be adequate for most users. -This default filter \*(lqmhl.forward\*(rq is: - +This default filter +.RI \*(lq mhl.forward \*(rq +is: +.PP +.RS 5 .nf -.in +.5i -.ne 10 -.eo -.so %etcdir%/mhl.forward -.ec -.in -.5i +%mhl_forward% .fi - -If a file named \*(lqmhl.forward\*(rq exists in the user's nmh +.RE +.PP +If a file named +.RI \*(lq mhl.forward \*(rq +exists in the user's nmh directory, it will be used instead of this form. You may specify an -alternate message filter file with the switch `\-filter\ filterfile'. - +alternate message filter file with the switch +.B \-filter +.IR filterfile . +.PP Each forwarded message is separated with an encapsulation delimiter. By default, any dashes in the first column of the forwarded messages will be prepended with `\-\ ' so that when received, the message is -suitable for bursting by \fIburst\fR\0(1). This follows the Internet -RFC\-934 guidelines. You may use the flag `\-nodashstuffing' in order +suitable for bursting by +.BR burst . +This follows the Internet RFC\-934 guidelines. You may use the flag +.B \-nodashstuffing +in order to suppress this form of quoting to the forwarded messages. - -For users of \fIprompter\fR\0(1), by specifying prompter's `-prepend' -switch in the \&.mh\(ruprofile file, any commentary text is entered +.PP +For users of +.BR prompter , +by specifying +.BR prompter 's +.B \-prepend +switch in the +.I \&.mh\(ruprofile +file, any commentary text is entered before the forwarded messages. (A major win!) - -To use the MIME rules for encapsulation, specify the `\-mime' switch. -This directs \fIforw\fR to generate an \fImhbuild\fR composition file. -Note that nmh will not invoke \fImhbuild\fR automatically, unless you -add this line to your \&.mh\(ruprofile file: -.sp -.in +.5i +.PP +To use the MIME rules for encapsulation, specify the +.B \-mime +switch. This directs +.B forw +to generate an +.B mhbuild +composition file. Note that +.B nmh +will not invoke +.B mhbuild +automatically, unless you +add this line to your +.I \&.mh\(ruprofile +file: +.PP +.RS 5 +.nf automimeproc: 1 -.in -.5i -.sp -Otherwise, -you must specifically give the command -.sp -.in +.5i +.fi +.RE +.PP +Otherwise, you must specifically give the command +.PP +.RS 5 +.nf What now? mime -.in -.5i -.sp +.fi +.RE +.PP prior to sending the draft. - -The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke -the \fInmh\fR draft folder facility. This is an advanced (and highly -useful) feature. Consult the \fImh-draft\fR(5) man page for more -information. - -Upon exiting from the editor, \fIforw\fR will invoke the \fIwhatnow\fR -program. See \fIwhatnow\fR\0(1) for a discussion of available -options. The invocation of this program can be inhibited by using the -`\-nowhatnowproc' switch. (In truth of fact, it is the \fIwhatnow\fR -program which starts the initial edit. Hence, `\-nowhatnowproc' will -prevent any edit from occurring.) - -The `\-build' switch is intended to be used by the Emacs mh-e interface -to \fInmh\fR, and is only present if \fInmh\fR was compiled with support -for mh-e. It implies `\-nowhatnowproc'. It causes a file /draft +.PP +The +.B \-draftfolder +.I +folder +and +.B \-draftmessage +.I msg +switches invoke the +.B nmh +draft folder facility. This is an advanced (and highly +useful) feature. Consult the +.BR mh-draft (5) +man page for more information. +.PP +The +.B \-editor +.I editor +switch indicates the editor to use for the +initial edit. Upon exiting from the editor, +.B comp +will invoke the +.B whatnow +program. See +.BR whatnow (1) +for a discussion of +available options. The invocation of this program can be inhibited +by using the +.B \-nowhatnowproc +switch. (In truth of fact, it is +the +.I whatnow +program which starts the initial edit. Hence, +.B \-nowhatnowproc +will prevent any edit from occurring.) +.PP +The +.B \-build +switch is intended to be used by the Emacs mh-e interface to +.BR nmh , +and is only present if +.B nmh +was compiled with support for mh-e. It implies +.BR \-nowhatnowproc . +It causes a file /draft to be created, containing the draft message that would normally be presented to the user for editing. No mail is actually sent. Note that this switch is not guaranteed to -be present or to have the same effects in future versions of \fInmh\fR: +be present or to have the same effects in future versions of +.BR nmh : it is documented here only for completeness. - -The `\-file\ msgfile' switch specifies the message to be forwarded as an -exact filename rather than as an \fInmh\fR folder and message number. It is -intended to be used by the \fImsh\fR\0(1) interface to \fInmh\fR. -This switch implies `-noannotate'. The forwarded message is simply +.PP +The +.B \-file +.I msgfile +switch specifies the message to be forwarded as an +exact filename rather than as an +.B nmh +folder and message number. It is +intended to be used by the +.B msh +interface to +.BR nmh . +This switch implies +.BR \-noannotate . +The forwarded message is simply copied verbatim into the draft; the processing implied by -the `-filter', `-mime' and `-digest' switches is bypassed, and the -usual leading and trailing 'Forwarded Message' delimiters are not -added. -The same caveats apply to this option as to the `\-build' switch. - -The `\-digest\ list', `\-issue\ number', and `\-volume\ number' switches -implement a digest facility for \fInmh\fR. Specifying these switches -enables and/or overloads the following escapes: - -.sp 1 +the +.BR \-filter , +.BR \-mime , +and +.B \-digest +switches is bypassed, and the usual leading and trailing +'Forwarded Message' delimiters are not added. +The same caveats apply to this option as to the +.B \-build +switch. +.PP +The +.B \-digest +.IR list , +.B \-issue +.IR number , +and +.B \-volume +.I number +switches implement a digest facility for +.BR nmh . +Specifying these switches enables and/or overloads the following escapes: +.PP +.RS 5 .nf .ta \w'Component 'u +\w'Escape 'u +\w'Returns 'u -\fIType\fR \fIEscape\fR \fIReturns\fR \fIDescription\fR -\fIcomponent\fR \fIdigest\fR string Argument to `\-digest' -\fIfunction\fR \fIcur\fR integer Argument to `\-volume' -\fIfunction\fR \fImsg\fR integer Argument to `\-issue' -.re +.I Type Escape Returns Description +component digest string Argument to `\-digest' +function cur integer Argument to `\-volume' +function msg integer Argument to `\-issue' .fi +.RE +.PP +Consult the +.I "Advanced Features" +section of the +.B nmh +User's Manual for more information on making digests. -Consult the \fBAdvanced Features\fR section of -the \fInmh\fR User's Manual for more information on making digests. -.Fi +.SH FILES +.fc ^ ~ +.nf +.ta \w'/usr/local/nmh/etc/ExtraBigFileName 'u ^%etcdir%/forwcomps~^The standard message skeleton ^or /forwcomps~^Rather than the standard skeleton ^%etcdir%/digestcomps~^The message skeleton if `\-digest' is given @@ -209,55 +339,78 @@ the \fInmh\fR User's Manual for more information on making digests. ^or /mhl.forward~^Rather than the standard filter ^$HOME/\&.mh\(ruprofile~^The user profile ^/draft~^The draft file -.Pr + +.SH "PROFILE COMPONENTS" +.fc ^ ~ +.nf +.ta 2.4i +.ta \w'ExtraBigProfileName 'u ^Path:~^To determine the user's nmh directory -.Ps ^Current\-Folder:~^To find the default current folder -.Ps ^Draft\-Folder:~^To find the default draft\-folder -.Ps ^Editor:~^To override the default editor -.Ps ^Msg\-Protect:~^To set mode when creating a new message (draft) -.Ps ^fileproc:~^Program to refile the message -.Ps ^mhlproc:~^Program to filter messages being forwarded -.Ps ^whatnowproc:~^Program to ask the \*(lqWhat now?\*(rq questions -.Sa -\fIProposed Standard for Message Encapsulation\fR (RFC\-934), -.br -mhbuild(1), comp(1), repl(1), send(1), whatnow(1), mh\-format(5) -.De -`+folder' defaults to the current folder -`msgs' defaults to cur -.Ds -`\-noannotate' -.Ds -`\-nodraftfolder' -.Ds -`\-noformat' -.Ds -`\-inplace' -.Ds -`\-dashstuffing' -.Ds -`\-nomime' -.Co + +.SH "SEE ALSO" +mhbuild(1), comp(1), repl(1), send(1), whatnow(1), mh\-format(5), +.I "Proposed Standard for Message Encapsulation" +(RFC\-934) + +.SH "DEFAULTS" +.nf +.RB ` +folder "' defaults to the current folder" +.RB ` msgs "' defaults to cur" +.RB ` \-noannotate ' +.RB ` \-nodraftfolder ' +.RB ` \-noformat ' +.RB ` \-inplace ' +.RB ` \-dashstuffing ' +.RB ` \-nomime ' + +.SH CONTEXT If a folder is given, it will become the current folder. The first message forwarded will become the current message. -.Bu - -If \fIwhatnowproc\fR is \fIwhatnow\fR, then \fIforw\fR uses a built\-in -\fIwhatnow\fR, it does not actually run the \fIwhatnow\fR program. -Hence, if you define your own \fIwhatnowproc\fR, don't call it -\fIwhatnow\fR since \fIforw\fR won't run it. -When \fIforw\fR is told to annotate the messages it forwards, it +.SH BUGS +If +.I whatnowproc +is +.BR whatnow , +then +.B forw +uses a built\-in +.BR whatnow , +it does not actually run the +.B whatnow +program. +Hence, if you define your own +.IR whatnowproc , +don't call it +.B whatnow +since +.B forw +won't run it. +.PP +When +.B forw +is told to annotate the messages it forwards, it doesn't actually annotate them until the draft is successfully sent. -If from the \fIwhatnowproc\fR, you \fIpush\fR instead of \fIsend\fR, -it's possible to confuse \fIforw\fR by re\-ordering the file (e.g., -by using `folder\0\-pack') before the message is successfully sent. -\fIDist\fR and \fIrepl\fR don't have this problem. -.En +If from the +.IR whatnowproc , +you +.B push +instead of +.BR send , +it's possible to confuse +.B forw +by re\-ordering the file (e.g. by using +.RB \*(lq folder +.BR \-pack \*(rq) +before the message is successfully sent. +.B Dist +and +.B repl +don't have this problem. -- 1.7.10.4