nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] nmh/man Makefile.in, 1.14.2.1, 1.14.2.2 mh-chart.man, 1.4,


From: Ken Hornstein <address@hidden>
Subject: [Nmh-commits] nmh/man Makefile.in, 1.14.2.1, 1.14.2.2 mh-chart.man, 1.4, 1.4.2.1 mh-format.man, 1.3, 1.3.2.1 nmh.man, 1.5.2.1, 1.5.2.2 pick.man, 1.5, 1.5.2.1 repl.man, 1.7, 1.7.2.1 send.man, 1.7.2.1, 1.7.2.2 slocal.man, 1.6, 1.6.2.1
Date: Fri, 24 Oct 2003 20:14:50 +0000

Update of /cvsroot/nmh/nmh/man
In directory subversions:/tmp/cvs-serv30347/man

Modified Files:
      Tag: RELEASE_1_1
        Makefile.in mh-chart.man mh-format.man nmh.man pick.man 
        repl.man send.man slocal.man 
Log Message:
Merge in changes that didn't make it onto the release branch.


Index: mh-format.man
===================================================================
RCS file: /cvsroot/nmh/nmh/man/mh-format.man,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -d -r1.3 -r1.3.2.1
*** mh-format.man       2 Jan 2001 08:10:46 -0000       1.3
--- mh-format.man       24 Oct 2003 20:14:46 -0000      1.3.2.1
***************
*** 1,4 ****
  .\"
! .\" %nmhwarning%
  .\" $Id$
  .\"
--- 1,4 ----
  .\"
! .\" THIS FILE HAS BEEN AUTOMATICALLY GENERATED.  DO NOT EDIT.
  .\" $Id$
  .\"
***************
*** 6,13 ****
  .SH NAME
  mh-format \- format file for nmh message system
- .SH SYNOPSIS
- some
- .B nmh
- commands
  .SH DESCRIPTION
  Several
--- 6,9 ----
***************
*** 25,43 ****
  how to generate the reply to a message, and so on.
  .PP
- Format strings are designed to be efficiently parsed by
- .B nmh
- which means they are not necessarily simple to write and understand.
- This means that novice, casual, or even advanced users of
- .B nmh
- should not have to deal with them.
- .PP
  There are a few alternate scan listing formats available
  in
! .IR %etcdir%/scan.time ,
! .IR %etcdir%/scan.size ,
  and
! .IR %etcdir%/scan.timely .
  Look in
! .I %etcdir%
  for other
  .B scan
--- 21,32 ----
  how to generate the reply to a message, and so on.
  .PP
  There are a few alternate scan listing formats available
  in
! .IR nmh/etc/scan.time ,
! .IR nmh/etc/scan.size ,
  and
! .IR nmh/etc/scan.timely .
  Look in
! .I nmh/etc
  for other
  .B scan
***************
*** 55,59 ****
  .PP
  A format string consists of ordinary text, and special multi-character
! escapesequences which begin with `%'.  When specifying a format
  string, the usual C backslash characters are honored: `\\b', `\\f',
  `\\n', `\\r', and `\\t'.  Continuation lines in format files end with
--- 44,48 ----
  .PP
  A format string consists of ordinary text, and special multi-character
! escape sequences which begin with `%'.  When specifying a format
  string, the usual C backslash characters are honored: `\\b', `\\f',
  `\\n', `\\r', and `\\t'.  Continuation lines in format files end with
***************
*** 62,65 ****
--- 51,56 ----
  .\" TALK ABOUT SYNTAX FIRST, THEN SEMANTICS
  .SS SYNTAX
+ Format strings are built around
+ .IR "escape sequences" .
  There are three types of escape sequences: header
  .IR components ,
***************
*** 68,71 ****
--- 59,65 ----
  and flow
  .IR control .
+ Comments may be inserted in most places where a function argument is
+ not expected.  A comment begins with `%;' and ends with a (non-escaped)
+ newline.
  .PP
  A
***************
*** 88,93 ****
  .RI `%( function )'.
  All functions are built-in, and most have a string or numeric value.
  
! .SS "Control-flow escapes"
  A
  .I control
--- 82,100 ----
  .RI `%( function )'.
  All functions are built-in, and most have a string or numeric value.
+ A function escape may have an
+ .IR argument .
+ The argument follows the function escape: separating
+ whitespace is discarded:
+ .RI `%( function " " argument )'.
+ .PP
+ In addition to literal numbers or strings, 
+ the argument to a function escape can be another function, a component,
+ or a control escape.  When the argument is a function or a
+ component, they are listed without a leading `%'.  When control escapes
+ are used as function arguments, they written as normally, with
+ a leading `%';
  
! .SS "Control escapes"
! .PP
  A
  .I control
***************
*** 97,109 ****
  .RS 5
  .nf
! %<condition
! .RI " " "format text 1"
! %?condition2
! .RI " " "format text 2"
! %?condition3
! .RI " " "format text 3"
! \&...
! %|
! .RI " " "format text N"
  %>
  .fi
--- 104,111 ----
  .RS 5
  .nf
! .RI "%< " condition " " "format-text"
! .RI "%? " condition " " "format-text"
!     \&...
! .RI "%| " "format-text"
  %>
  .fi
***************
*** 114,162 ****
  .B if\-elseif\-else\-endif
  block where only one of the
! .I format text
! segments is interpreted.
  .PP
! The `%<' and `%?' control escapes causes a condition to be evaluated.  
! This condition may be either a
  .I component
! or a
  .IR function .
! The four constructs have the following syntax:
! .PP
! .RS 5
! .nf
! %<{component}
! %<(function)
! %?{component}
! %?(function)
! .fi
! .RE
! .PP
! These control escapes test whether the function or component value is
! non-zero (for integer-valued escapes), or non-empty (for string-valued
! escapes).
! .PP
! If this test evaulates true, then the format text up to the next
! corresponding control escape (one of `%|', `%?', or `%>') is interpreted
! normally.  Next, all format text (if any) up to the corresponding `%>'
! control escape is skipped.  The `%>' control escape is not interpreted;
! normal interpretation resumes after the `%>' escape.
! .PP
! If the test evaluates false, however, then the format text up to
! the next corresponding control escape (again, one of `%|', `%?', or
! `%>') is skipped, instead of being interpreted.  If the control escape
! encountered was `%?', then the condition associated with that control
! escape is evaluated, and interpretation proceeds after that test as
! described in the previous paragraph.  If the control escape encountered
! was `%|', then the format text up to the corresponding `%>' escape is
! interpreted normally.  As above, the `%>' escape is not interpreted and
! normal interpretation resumes after the `%>' escape.
  .PP
! The `%?' control escape and its following format text is optional, and may
! be included zero or more times.  The `%|' control escape and its following
! format text is also optional, and may be included zero or one times.
  
  .SS "Function escapes"
! Most functions expect an argument of a particular type:
  .PP
  .RS 5
--- 116,146 ----
  .B if\-elseif\-else\-endif
  block where only one of the
! format-texts
! is interpreted.  In other 
! words, `%<' is like the "if", `%?' is like the "elseif", `%|' is like 
! "else", and `%>' is like "endif".
  .PP
! A `%<' or `%?' control escape causes its condition to be evaluated.  
! This condition is a
  .I component
! or
  .IR function .
! For integer valued functions or components, the condition is true
! if the function return or component value is non-zero, and false if zero.
! For string valued functions or components, the condition is true
! if the function return or component value is 
! a non-empty string, and false for an empty string.
! 
  .PP
! The `%?' control escape is optional, and may there may be more
! than one `%?' control escape in a conditional block.
! The `%|' control escape
! is also optional, but may be included at most once.
  
  .SS "Function escapes"
! Functions expecting an argument generally
! require an argument of a particular type.
! In addition to the number and string types,
! these include:
  .PP
  .RS 5
***************
*** 164,175 ****
  .ta +\w'Argument 'u +\w'An optional component, 'u
  .I Argument   Description     Example Syntax
! literal       A literal number,       %(\fIfunc\fR 1234)
        or string               %(\fIfunc\fR text string)
! comp  Any header component    %(\fIfunc\fR\^{\fIin-reply-to\fR\^})
  date  A date component        %(\fIfunc\fR\^{\fIdate\fR\^})
  addr  An address component    %(\fIfunc\fR\^{\fIfrom\fR\^})
! expr  An optional component,  %(\fIfunc\fR\^(\fIfunc2\fR\^))
!       function or control,    %(\fIfunc\fR 
%<{\fIreply-to\fR\^}%|%{\fIfrom\fR\^}%>)
!       perhaps nested          %(\fIfunc\fR\^(\fIfunc2\fR\^{\fIcomp\fR\^}))
  .fi
  .RE
--- 148,159 ----
  .ta +\w'Argument 'u +\w'An optional component, 'u
  .I Argument   Description     Example Syntax
! literal       A literal number        %(\fIfunc\fR 1234)
        or string               %(\fIfunc\fR text string)
! comp  Any component           %(\fIfunc\fR\^{\fIin-reply-to\fR\^})
  date  A date component        %(\fIfunc\fR\^{\fIdate\fR\^})
  addr  An address component    %(\fIfunc\fR\^{\fIfrom\fR\^})
! expr  Nothing %(\fIfunc\fR)
!       or a subexpression      %(\fIfunc\fR\^(\fIfunc2\fR\^))
!       or control escape       %(\fIfunc\fR 
%<{\fIreply-to\fR\^}%|%{\fIfrom\fR\^}%>)
  .fi
  .RE
***************
*** 184,209 ****
  string, respectively.
  .PP
! All arguments except those of type
  .IR expr
! are required.  For the
! .I expr
! argument type, the leading `%' must be omitted for component
! and function escape arguments, and must be present (with a leading space)
! for control escape arguments.
  .PP
! The evaluation of format strings is based on a simple virtual machine
! with an integer register
  .IR num
! , and a text string register
  .IR str .
! When a function escape is processed, if it accepts an optional
! .I expr
! argument which is not present, it reads the current value of either
  .I num
  or
  .I str
! as appropriate.
! 
! .SS "Return values"
  Component escapes write the value of their message header in
  .IR str .
--- 168,219 ----
  string, respectively.
  .PP
! Most arguments not of type
  .IR expr
! are required.
! When escapes are nested (via expr arguments), evaluation is done from 
inner-most to outer-most.
! As noted above, for the
! expr
! argument type, 
! functions and components are written without a
! leading `%'.
! Control escape arguments must use a leading `%', preceded by a space.
  .PP
! For example,
! .PP
! .RS 5
! .nf
! %<(mymbox{from}) To: %{to}%>
! .fi
! .RE
! .PP
! writes  the  value of the header component \*(lqFrom:\*(rq to the
! internal register named str; then (\fImymbox\fR\^) reads str and
! writes its result to the internal register named 
! .IR num ; 
! then the control escape evaluates 
! .IR num .  
! If
  .IR num
! is non-zero, the
! string \*(lqTo:\*(rq is printed  followed  by  the  value  of  the
! header component \*(lqTo:\*(rq.
! .SS Evaluation
! The evaluation of format strings is performed
! by a small virtual machine.
! The machine is capable of evaluating nested expressions
! as described above, and in addition
! has an integer register
! .IR num ,
! and a text string register
  .IR str .
! When a function escape that
! accepts an optional argument is processed,
! and the argument is not present, the current value of either
  .I num
  or
  .I str
! is used as the argument: which register is
! used depends on the function, as listed below.
! .PP
  Component escapes write the value of their message header in
  .IR str .
***************
*** 214,240 ****
  for functions returning string values.  (The boolean type is a subset
  of integers with usual values 0=false and 1=true.)  Control escapes
! return a boolean value, and set
! .IR num .
  .PP
  All component escapes, and those function escapes which return an
! integer or string value, pass this value back to their caller
! in addition to setting
! I str
  or
  .IR num .
! These escapes will print
! out this value unless called as part of an argument to another escape
! sequence.  Escapes which return a boolean value do pass this value
! back to their caller in
! .IR num ,
! but will never print out the value.
  .PP
  .RS 5
  .nf
! .ta \w'Formataddr 'u +\w'Argument 'u +\w'Rboolean 'u
! .I Function   Argument        Return  Description
  msg           integer message number
! cur           integer message is current
! unseen                integer message is unseen
  size          integer size of message
  strlen                integer length of \fIstr\fR
--- 224,252 ----
  for functions returning string values.  (The boolean type is a subset
  of integers with usual values 0=false and 1=true.)  Control escapes
! return a boolean value, setting
! .I num
! to 1 if the last explicit condition
! evaluated by a `%<' or `%?' control
! succeeded, and 0 otherwise.
  .PP
  All component escapes, and those function escapes which return an
! integer or string value, evaluate to their value as well as setting
! .I str
  or
  .IR num .
! Outermost escape expressions in
! these forms will print
! their value, but outermost escapes which return a boolean value
! do not result in printed output.
! .SS Functions
! The function escapes may be roughly grouped into a few categories.
  .PP
  .RS 5
  .nf
! .ta \w'Fformataddr 'u +\w'Aboolean 'u +\w'Rboolean 'u
! .I Function   Argument   Result       Description
  msg           integer message number
! cur           integer message is current (0 or 1)
! unseen                integer message is unseen (0 or 1)
  size          integer size of message
  strlen                integer length of \fIstr\fR
***************
*** 252,259 ****
  divide        literal integer \fInum\fR divided by \fIarg\fR
  modulo        literal integer \fInum\fR modulo \fIarg\fR
! num   literal integer Set \fInum\fR to \fIarg\fR
! lit   literal string  Set \fIstr\fR to \fIarg\fR
  getenv        literal string  Set \fIstr\fR to environment value of \fIarg\fR
! profile       literal string  Set \fIstr\fR to profile component \fIarg\fR 
value
  .\" dat       literal int     return value of dat[arg]
  nonzero       expr    boolean \fInum\fR is non-zero
--- 264,274 ----
  divide        literal integer \fInum\fR divided by \fIarg\fR
  modulo        literal integer \fInum\fR modulo \fIarg\fR
! num   literal integer Set \fInum\fR to \fIarg\fR.
! num           integer Set \fInum\fR to zero.
! lit   literal string  Set \fIstr\fR to \fIarg\fR.
! lit           string  Clear \fIstr\fR.
  getenv        literal string  Set \fIstr\fR to environment value of \fIarg\fR
! profile       literal string  Set \fIstr\fR to profile component \fIarg\fR 
!                       value
  .\" dat       literal int     return value of dat[arg]
  nonzero       expr    boolean \fInum\fR is non-zero
***************
*** 266,270 ****
  .\" compflag  comp    integer Set \fInum\fR to component flags bits (internal)
  .\" decodecomp        comp    string  Set \fIstr\fR to RFC-2047 decoded 
component text
! decode        expr    string  decode \fIstr\fR as RFC-2047 component
  trim  expr            trim trailing white-space from \fIstr\fR
  putstr        expr            print \fIstr\fR
--- 281,286 ----
  .\" compflag  comp    integer Set \fInum\fR to component flags bits (internal)
  .\" decodecomp        comp    string  Set \fIstr\fR to RFC-2047 decoded 
component text
! decode        expr    string  decode \fIstr\fR as RFC-2047 (MIME-encoded) 
!                       component
  trim  expr            trim trailing white-space from \fIstr\fR
  putstr        expr            print \fIstr\fR
***************
*** 273,284 ****
  putnumf       expr            print \fInum\fR in a fixed width
  .\" addtoseq literal    add msg to sequence (LBL option)
  .fi
  .RE
  .PP
! These functions require a date component as an argument:
  .PP
  .RS 5
  .nf
! .ta \w'Formataddr 'u +\w'Argument 'u +\w'Rboolean 'u
  .I Function   Argument        Return  Description
  sec   date    integer seconds of the minute
--- 289,306 ----
  putnumf       expr            print \fInum\fR in a fixed width
  .\" addtoseq literal    add msg to sequence (LBL option)
+ nodate        string  integer Argument not a date string (0 or 1)
+ formataddr    expr            append \fIarg\fR to \fIstr\fR as a
+                       (comma separated) address list
+ putaddr       literal         print \fIstr\fR address list with
+                       \fIarg\fR as optional label;
+                       get line width from \fInum\fR
  .fi
  .RE
  .PP
! The following functions require a date component as an argument:
  .PP
  .RS 5
  .nf
! .ta \w'Fformataddr 'u +\w'Aboolean 'u +\w'Rboolean 'u
  .I Function   Argument        Return  Description
  sec   date    integer seconds of the minute
***************
*** 289,293 ****
  weekday       date    string  day of the week
  sday  date    integer day of the week known?
!                       (0=implicit,\-1=unknown)
  mday  date    integer day of the month
  yday  date    integer day of the year
--- 311,315 ----
  weekday       date    string  day of the week
  sday  date    integer day of the week known?
!                       (1=explicit,0=implicit,\-1=unknown)
  mday  date    integer day of the month
  yday  date    integer day of the year
***************
*** 299,321 ****
  tzone date    string  timezone string
  szone date    integer timezone explicit?
!                       (0=implicit,\-1=unknown)
  date2local    date            coerce date to local timezone
  date2gmt      date            coerce date to GMT
! dst   date    integer daylight savings in effect?
  clock date    integer seconds since the UNIX epoch
  rclock        date    integer seconds prior to current time
  tws   date    string  official 822 rendering
  pretty        date    string  user-friendly rendering
- nodate        date    integer \fIstr\fR not a date string
  .fi
  .RE
  .PP
  These functions require an address component as an argument.  
! The return value of functions noted with `*' pertain only to
  the first address present in the header component.
  .PP
  .RS 5
  .nf
! .ta \w'Formataddr 'u +\w'Argument 'u +\w'Rboolean 'u
  .I Function   Argument        Return  Description
  proper        addr    string  official 822 rendering
--- 321,342 ----
  tzone date    string  timezone string
  szone date    integer timezone explicit?
!                       (1=explicit,0=implicit,\-1=unknown)
  date2local    date            coerce date to local timezone
  date2gmt      date            coerce date to GMT
! dst   date    integer daylight savings in effect? (0 or 1)
  clock date    integer seconds since the UNIX epoch
  rclock        date    integer seconds prior to current time
  tws   date    string  official 822 rendering
  pretty        date    string  user-friendly rendering
  .fi
  .RE
  .PP
  These functions require an address component as an argument.  
! The return value of functions noted with `*' is computed from
  the first address present in the header component.
  .PP
  .RS 5
  .nf
! .ta \w'Fformataddr 'u +\w'Aboolean 'u +\w'Rboolean 'u
  .I Function   Argument        Return  Description
  proper        addr    string  official 822 rendering
***************
*** 325,369 ****
  note  addr    string  commentary text*
  mbox  addr    string  the local mailbox*
! mymbox        addr    integer the user's addresses? (0=no,1=yes)
  host  addr    string  the host domain*
! nohost        addr    integer no host was present*
  type  addr    integer host type* (0=local,1=network,
                        \-1=uucp,2=unknown)
  path  addr    string  any leading host route*
! ingrp addr    integer address was inside a group*
  gname addr    string  name of group*
- formataddr    expr            append \fIarg\fR to \fIstr\fR as a
-                       (comma separated) address list
- putaddr       literal         print \fIstr\fR address list with
-                       \fIarg\fR as optional label;
-                       get line width from \fInum\fR
  .fi
  .RE
  .PP
! When escapes are nested, evaluation is done from inner-most to outer-most.
! The outer-most escape must begin with `%'; the inner escapes must not.
! For example,
! .PP
! .RS 5
! .nf
! %<(mymbox{from}) To: %{to}%>
! .fi
! .RE
! .PP
! writes the value of the header component \*(lqFrom:\*(rq to
! .IR str ;
! then (\fImymbox\fR\^) reads
! .I str
! and writes its result to
! .IR num ;
! then the control escape evaluates
! .IR num .
! If
! .I num
! is non-zero, the string \*(lqTo:\*(rq is printed followed by the value of the 
header
! component \*(lqTo:\*(rq.
! .PP
! A minor explanation of (\fImymbox\fR\^{\fIcomp\fR\^}) is in order.
! In general, it checks each of the addresses in the header component
  \*(lq\fIcomp\fR\*(rq against the user's mailbox name and any
  .RI \*(lq Alternate-Mailboxes \*(rq.
--- 346,362 ----
  note  addr    string  commentary text*
  mbox  addr    string  the local mailbox*
! mymbox        addr    integer List has the user's address? (0 or 1)
  host  addr    string  the host domain*
! nohost        addr    integer no host was present (0 or 1)*
  type  addr    integer host type* (0=local,1=network,
                        \-1=uucp,2=unknown)
  path  addr    string  any leading host route*
! ingrp addr    integer address was inside a group (0 or 1)*
  gname addr    string  name of group*
  .fi
  .RE
  .PP
! (A clarification on (\fImymbox\fR\^{\fIcomp\fR\^}) is in order.
! This function checks each of the addresses in the header component
  \*(lq\fIcomp\fR\*(rq against the user's mailbox name and any
  .RI \*(lq Alternate-Mailboxes \*(rq.
***************
*** 371,376 ****
  however, it also returns true if the \*(lq\fIcomp\fR\*(rq header is not
  present in the message.  If needed, the (\fInull\fR\^) function can be
! used to explicitly test for this condition.
! .PP
  When a function or component escape is interpreted and the result will
  be immediately printed, an optional field width can be specified to
--- 364,369 ----
  however, it also returns true if the \*(lq\fIcomp\fR\*(rq header is not
  present in the message.  If needed, the (\fInull\fR\^) function can be
! used to explicitly test for this case.)
! .SS Formatting
  When a function or component escape is interpreted and the result will
  be immediately printed, an optional field width can be specified to
***************
*** 383,387 ****
  begins with a leading zero, then the fill character is set to a zero.
  .PP
! As above, the functions (\fIputnumf\fR\^) and (\fIputstrf\fR\^)
  print their result in exactly the number of characters
  specified by their leading field width argument.  For example,
--- 376,380 ----
  begins with a leading zero, then the fill character is set to a zero.
  .PP
! The functions (\fIputnumf\fR\^) and (\fIputstrf\fR\^)
  print their result in exactly the number of characters
  specified by their leading field width argument.  For example,
***************
*** 392,406 ****
  For \fIputstrf\fR, using a negative value for the field width causes
  right-justification of the string within the field, with padding on
! the left up to the field width.  The functions (\fIputnum\fR\^) and
! (\fIputstr\fR\^) print their result in the minimum number of characters
  required, and ignore any leading field width argument.
  .PP
  The available output width is kept in an internal register; any output
  past this width will be truncated.
! .PP
! Comments may be inserted in most places where a function argument is
! not expected.  A comment begins with `%;' and ends with a (non-escaped)
! newline.
! .PP
  With all this in mind,
  here's the default format string for
--- 385,396 ----
  For \fIputstrf\fR, using a negative value for the field width causes
  right-justification of the string within the field, with padding on
! the left up to the field width.
! The functions (\fIputnum\fR\^) and
! (\fIputstr\fR\^) are somewhat special: they print their result in the minimum 
number of characters
  required, and ignore any leading field width argument.
  .PP
  The available output width is kept in an internal register; any output
  past this width will be truncated.
! .SS Examples
  With all this in mind,
  here's the default format string for
***************
*** 415,421 ****
  .RE
  .PP
! which says that the message number should be printed in four digits,
! if the message is the current message then a `+' else a space should
! be printed, and if a \*(lqReplied:\*(rq field is present then a `\-'
  else if an \*(lqEncrypted:\*(rq field is present then an `E' otherwise
  a space should be printed.  Next:
--- 405,411 ----
  .RE
  .PP
! which says that the message number should be printed in four digits.
! If the message is the current message then a `+' else a space should
! be printed; if a \*(lqReplied:\*(rq field is present then a `\-'
  else if an \*(lqEncrypted:\*(rq field is present then an `E' otherwise
  a space should be printed.  Next:
***************
*** 432,436 ****
  .RS 5
  .nf
! %<{date} %|*>
  .fi
  .RE
--- 422,426 ----
  .RS 5
  .nf
! %<{date} %|*%>
  .fi
  .RE
***************
*** 442,458 ****
  .RS 5
  .nf
! %<(mymbox{from})%<{to}To:%14(friendly{to})%>%>
  .fi
  .RE
  .PP
! if the message is from me,
! and there is a \*(lqTo:\*(rq header,
! print `To:' followed by a \*(lquser-friendly\*(rq rendering of the 
! first address in the \*(lqTo:\*(rq field.
  Continuing,
  .PP
  .RS 5
  .nf
! %<(zero)%17(friendly{from})%>
  .fi
  .RE
--- 432,448 ----
  .RS 5
  .nf
! %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>
  .fi
  .RE
  .PP
! if the message is from me, and there is a \*(lqTo:\*(rq header,
! print \*(lqTo:\*(rq followed by a \*(lquser-friendly\*(rq rendering of the
! first address in the \*(lqTo:\*(rq field; any MIME-encoded
! characters are decoded into the actual characters.
  Continuing,
  .PP
  .RS 5
  .nf
! %<(zero)%17(decode(friendly{from}))%>
  .fi
  .RE
***************
*** 460,476 ****
  if either of the above two tests failed,
  then the \*(lqFrom:\*(rq address is printed
! in a \*(lquser-friendly\*(rq format.
  And finally,
  .PP
  .RS 5
  .nf
! %{subject}%<{body}<<%{body}%>
  .fi
  .RE
  .PP
! the subject and initial body (if any) are printed.
  .PP
  For a more complicated example, next consider
! the default
  .I replcomps
  format file.
--- 450,466 ----
  if either of the above two tests failed,
  then the \*(lqFrom:\*(rq address is printed
! in a mime-decoded, \*(lquser-friendly\*(rq format.
  And finally,
  .PP
  .RS 5
  .nf
! %(decode{subject})%<{body}<<%{body}>>%>
  .fi
  .RE
  .PP
! the mime-decoded subject and initial body (if any) are printed.
  .PP
  For a more complicated example, next consider
! a possible
  .I replcomps
  format file.
***************
*** 554,568 ****
  .RS 5
  .nf
! %<{date}In-reply-to: Your message of "\\
! %<(nodate{date})%{date}%|%(pretty{date})%>."%<{message-id}
!              %{message-id}%>\\n%>\\
  \-\-\-\-\-\-\-\-
  .fi
  .RE
  .PP
! If a date component was present, an \*(lqIn-Reply-To:\*(rq header is
! output with the preface \*(lqYour message of \*(rq.  If the date was
! parseable, it is output in a user-friendly format, otherwise it is
! output as-is.  The message-id is included if present.  As with all
  plain-text, the row of dashes are output as-is.
  .PP
--- 544,558 ----
  .RS 5
  .nf
! %<{message-id}In-Reply-To: %{message-id}\\n%>\\
! %<{message-id}References: %<{references} %{references}%>\\
! %{message-id}\\n%>
  \-\-\-\-\-\-\-\-
  .fi
  .RE
  .PP
! If a message-id component was present, an \*(lqIn-Reply-To:\*(rq header is
! output including the message-id, followed by a \*(lqReferences:\*(rq
! header with references, if present, and the message-id.
! As with all
  plain-text, the row of dashes are output as-is.
  .PP
***************
*** 573,588 ****
  .nf
  .ta .5i 1i 1.5i 2i
! if (comp_exists(date))  then
!       print (\*(lqIn-reply-to: Your message of \\\*(lq\*(rq)
!       if (not_date_string(date.value) then
!               print (date.value)
!       else
!               print (pretty(date.value))
!       endif
!       print (\*(lq\\\*(rq\*(rq)
!       if (comp_exists(message-id)) then
!               print (\*(lq\\n\\t\*(rq)
!               print (message-id.value)
        endif
        print (\*(lq\\n\*(rq)
  endif
--- 563,577 ----
  .nf
  .ta .5i 1i 1.5i 2i
! if (comp_exists(message-id))  then
!       print (\*(lqIn-reply-to: \*(rq)
!       print (message-id.value)
!       print (\*(lq\\n\*(rq)
! endif
! if (comp_exists(message-id)) then
!       print (\*(lqReferences: \*(rq)
!       if (comp_exists(references)) then
!             print(references.value);
        endif
+       print (message-id.value)
        print (\*(lq\\n\*(rq)
  endif
***************
*** 590,598 ****
  .RE
  .PP
! Although this seems complicated,
! in point of fact,
! this method is flexible enough to extract individual fields and print them in
! any format the user desires.
! 
  .SH "SEE ALSO"
  scan(1), repl(1), ap(8), dp(8)
--- 579,621 ----
  .RE
  .PP
! .\" (Note that this pseudocode begs the question ``why not just
! .\" support this syntax?''  MH has been hacked on for a long time...)
! .\".PP
! One more example: Currently,
! .B nmh
! supports very
! large message numbers, and it is not uncommon for a folder
! to have far more than 10000 messages.
! .\" (Indeed, the original MH
! .\" tutorial document by Rose and Romine is entitled "How to
! .\" process 200 messages a day and still get some real work
! .\" done."  The authors apparently only planned to get
! .\" real work done for about 50 days per folder.)
! Nontheless (as noted above)
! the various scan format strings are inherited
! from older MH versions, and are generally hard-coded to 4
! digits of message number before formatting problems
! start to occur.  
! The nmh format strings can be modified to behave more sensibly with larger
! message numbers:
! .PP
! .RS
! .nf
! %(void(msg))%<(gt 9999)%(msg)%|%4(msg)%>
! .fi
! .RE
! .PP
! The current message number is placed in \fInum\fP.
! (Note that
! .RI ( msg )
! is an int function, not a component.)
! The
! .RI ( gt )
! conditional
! is used to test whether the message number
! has 5
! or more digits.
! If so, it is printed at full width: otherwise
! at 4 digits.
  .SH "SEE ALSO"
  scan(1), repl(1), ap(8), dp(8)

Index: nmh.man
===================================================================
RCS file: /cvsroot/nmh/nmh/man/nmh.man,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -C2 -d -r1.5.2.1 -r1.5.2.2
*** nmh.man     28 Feb 2003 19:08:36 -0000      1.5.2.1
--- nmh.man     24 Oct 2003 20:14:47 -0000      1.5.2.2
***************
*** 184,188 ****
  subject, source, destination, or content.  These are beyond the scope
  of this manual entry.
! ,PP
  Following is a list of all the
  .B nmh
--- 184,188 ----
  subject, source, destination, or content.  These are beyond the scope
  of this manual entry.
! .PP
  Following is a list of all the
  .B nmh
***************
*** 193,255 ****
  .nf
  .ta 1.5i
! ^ali (1)~^\- list mail aliases
! ^anno (1)~^\- annotate messages
! ^burst (1)~^\- explode digests into messages
! ^comp (1)~^\- compose a message 
! ^dist (1)~^\- redistribute a message to additional addresses
! ^flist (1)~^\- list folders with messages in given sequence(s)
! ^flists (1)~^\- list all folders with messages in given sequence(s)
! ^folder (1)~^\- set/list current folder/message
! ^folders (1)~^\- list all folders
! ^forw (1)~^\- forward messages
! ^inc (1)~^\- incorporate new mail
! ^mark (1)~^\- mark messages
! ^mhbuild (1)~^\- translate MIME composition draft
! ^mhl (1)~^\- produce formatted listings of nmh messages
! ^mhlist (1)~^\- list information about content of MIME messages
! ^mhmail (1)~^\- send or read mail
! ^mhn (1)~^\- display/list/store/cache MIME messages
! ^mhparam (1)~^\- print nmh profile components
! ^mhpath (1)~^\- print full pathnames of nmh messages and folders
! ^mhshow (1)~^\- display MIME messages
! ^mhstore (1)~^\- store contents of MIME messages into files
! ^msgchk (1)~^\- check for messages
! ^msh (1)~^\- nmh shell (and BBoard reader)
! ^next (1)~^\- show the next message
! ^packf (1)~^\- compress a folder into a single file
! ^pick (1)~^\- select messages by content
! ^prev (1)~^\- show the previous message
! ^prompter (1)~^\- prompting editor front end
! ^rcvdist (1)~^\- asynchronously redistribute new mail
! ^rcvpack (1)~^\- append message to file
! ^rcvstore (1)~^\- asynchronously incorporate new mail
! ^rcvtty  (1)~^\- report new mail
! ^refile (1)~^\- file messages in other folders
! ^repl (1)~^\- reply to a message
! ^rmf (1)~^\- remove folder
! ^rmm (1)~^\- remove messages
! ^scan (1)~^\- produce a one line per message scan listing
! ^send (1)~^\- send a message
! ^sendfiles (1)~^\- send multiple files and directories in MIME message
! ^show (1)~^\- show (display) messages
! ^slocal (1)~^\- asynchronously filter and deliver new mail
! ^sortm (1)~^\- sort messages
! ^whatnow (1)~^\- prompting front\-end for send
! ^whom (1)~^\- report to whom a message would go
  .sp
! ^mh\-alias (5)~^\- alias file for nmh message system
! ^mh\-draft (5)~^\- draft folder facility
! ^mh\-format (5)~^\- format file for nmh message system
! ^mh\-mail (5)~^\- message format for nmh message system
! ^mh\-profile (5)~^\- user customization for nmh message system
! ^mh\-sequence (5)~^\- sequence specification for nmh message system
! ^mh\-tailor (5)~^\- mail transport customization for nmh message system
  .sp
! ^ap (8)~^\- parse addresses 822\-style
! ^conflict (8)~^\- search for alias/password conflicts
! ^dp (8)~^\- parse dates 822\-style
! ^fmtdump (8)~^\- decode \fInmh\fP format files
! ^install\-mh (8)~^\- initialize the nmh environment
! ^post (8)~^\- deliver a message
  .fi
  .RE
--- 193,255 ----
  .nf
  .ta 1.5i
! ^ali(1)~^\- list mail aliases
! ^anno(1)~^\- annotate messages
! ^burst(1)~^\- explode digests into messages
! ^comp(1)~^\- compose a message 
! ^dist(1)~^\- redistribute a message to additional addresses
! ^flist(1)~^\- list folders with messages in given sequence(s)
! ^flists(1)~^\- list all folders with messages in given sequence(s)
! ^folder(1)~^\- set/list current folder/message
! ^folders(1)~^\- list all folders
! ^forw(1)~^\- forward messages
! ^inc(1)~^\- incorporate new mail
! ^mark(1)~^\- mark messages
! ^mhbuild(1)~^\- translate MIME composition draft
! ^mhl(1)~^\- produce formatted listings of nmh messages
! ^mhlist(1)~^\- list information about content of MIME messages
! ^mhmail(1)~^\- send or read mail
! ^mhn(1)~^\- display/list/store/cache MIME messages
! ^mhparam(1)~^\- print nmh profile components
! ^mhpath(1)~^\- print full pathnames of nmh messages and folders
! ^mhshow(1)~^\- display MIME messages
! ^mhstore(1)~^\- store contents of MIME messages into files
! ^msgchk(1)~^\- check for messages
! ^msh(1)~^\- nmh shell(and BBoard reader)
! ^next(1)~^\- show the next message
! ^packf(1)~^\- compress a folder into a single file
! ^pick(1)~^\- select messages by content
! ^prev(1)~^\- show the previous message
! ^prompter(1)~^\- prompting editor front end
! ^rcvdist(1)~^\- asynchronously redistribute new mail
! ^rcvpack(1)~^\- append message to file
! ^rcvstore(1)~^\- asynchronously incorporate new mail
! ^rcvtty(1)~^\- report new mail
! ^refile(1)~^\- file messages in other folders
! ^repl(1)~^\- reply to a message
! ^rmf(1)~^\- remove folder
! ^rmm(1)~^\- remove messages
! ^scan(1)~^\- produce a one line per message scan listing
! ^send(1)~^\- send a message
! ^sendfiles(1)~^\- send multiple files and directories in MIME message
! ^show(1)~^\- show(display) messages
! ^slocal(1)~^\- asynchronously filter and deliver new mail
! ^sortm(1)~^\- sort messages
! ^whatnow(1)~^\- prompting front\-end for send
! ^whom(1)~^\- report to whom a message would go
  .sp
! ^mh\-alias(5)~^\- alias file for nmh message system
! ^mh\-draft(5)~^\- draft folder facility
! ^mh\-format(5)~^\- format file for nmh message system
! ^mh\-mail(5)~^\- message format for nmh message system
! ^mh\-profile(5)~^\- user customization for nmh message system
! ^mh\-sequence(5)~^\- sequence specification for nmh message system
! ^mh\-tailor(5)~^\- mail transport customization for nmh message system
  .sp
! ^ap(8)~^\- parse addresses 822\-style
! ^conflict(8)~^\- search for alias/password conflicts
! ^dp(8)~^\- parse dates 822\-style
! ^fmtdump(8)~^\- decode \fInmh\fP format files
! ^install\-mh(8)~^\- initialize the nmh environment
! ^post(8)~^\- deliver a message
  .fi
  .RE
***************
*** 296,297 ****
--- 296,299 ----
  Send bug reports and suggestions to
  .IR address@hidden .
+ .SH "SEE ALSO"
+ mh-chart(1)

Index: pick.man
===================================================================
RCS file: /cvsroot/nmh/nmh/man/pick.man,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -d -r1.5 -r1.5.2.1
*** pick.man    25 Jan 2001 21:15:57 -0000      1.5
--- pick.man    24 Oct 2003 20:14:47 -0000      1.5.2.1
***************
*** 245,251 ****
  as well.
  .PP
! Regardless of the operation of the
! .B \-list
! switch, the
  .B \-sequence
  .I name
--- 245,249 ----
  as well.
  .PP
! The
  .B \-sequence
  .I name
***************
*** 262,274 ****
  defines a new message sequence for the current folder called
  \*(lqfred\*(rq which contains exactly those messages that were selected.
- .PP
- Note that whenever
- .B pick
- processes a
- .B \-sequence
- .I name
- switch, it
- sets
- .BR \-nolist .
  .PP
  By default,
--- 260,263 ----

Index: repl.man
===================================================================
RCS file: /cvsroot/nmh/nmh/man/repl.man,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -C2 -d -r1.7 -r1.7.2.1
*** repl.man    25 Jan 2001 21:15:58 -0000      1.7
--- repl.man    24 Oct 2003 20:14:47 -0000      1.7.2.1
***************
*** 86,93 ****
  To: <Mail\-Reply\-To> or <Reply\-To> or <From>
  cc: <To> and <cc> and <personal address>
  Subject: Re: <Subject>
! In\-Reply\-To: Your message of <Date>.
! .ti +\w'In\-Reply\-To: 'u
! <Message\-Id>
  --------
  .fi
--- 86,96 ----
  To: <Mail\-Reply\-To> or <Reply\-To> or <From>
  cc: <To> and <cc> and <personal address>
+ Fcc: {fcc switch} or +outbox
  Subject: Re: <Subject>
! In\-Reply\-To: <Message\-Id>
! References: <Message\-Id>
! Comments: In\-Reply\-To <From> or <apparently from> or <Sender>
! .ti +3 
! message dated <date>
  --------
  .fi
***************
*** 354,362 ****
  switch to change this.
  .PP
! The
  .B \-fcc
  .I +folder
! switch can be used to automatically specify a folder
! to receive Fcc:s.  More than one folder, each preceded by
  .B \-fcc
  can
--- 357,368 ----
  switch to change this.
  .PP
! Although the default template specifies that a copy of the reply will be
! put in
! the folder 'outbox',
! if the
  .B \-fcc
  .I +folder
! switch is given it will override the default value.
! More than one folder, each preceded by
  .B \-fcc
  can

Index: Makefile.in
===================================================================
RCS file: /cvsroot/nmh/nmh/man/Makefile.in,v
retrieving revision 1.14.2.1
retrieving revision 1.14.2.2
diff -C2 -d -r1.14.2.1 -r1.14.2.2
*** Makefile.in 28 Feb 2003 19:08:36 -0000      1.14.2.1
--- Makefile.in 24 Oct 2003 20:14:46 -0000      1.14.2.2
***************
*** 72,78 ****
         mh-mts. post.
  
! MAN1 := $(MAN1SRC:.=.$(manext1))
! MAN5 := $(MAN5SRC:.=.$(manext5))
! MAN8 := $(MAN8SRC:.=.$(manext8))
  
  # Since vmh is not built or distributed, neither should vmh.1 be
--- 72,78 ----
         mh-mts. post.
  
! MAN1 = $(MAN1SRC:.=.$(manext1))
! MAN5 = $(MAN5SRC:.=.$(manext5))
! MAN8 = $(MAN8SRC:.=.$(manext8))
  
  # Since vmh is not built or distributed, neither should vmh.1 be

Index: mh-chart.man
===================================================================
RCS file: /cvsroot/nmh/nmh/man/mh-chart.man,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -d -r1.4 -r1.4.2.1
*** mh-chart.man        25 Jan 2001 21:14:32 -0000      1.4
--- mh-chart.man        24 Oct 2003 20:14:46 -0000      1.4.2.1
***************
*** 835,836 ****
--- 835,839 ----
  
  .ad
+ 
+ .SH "SEE ALSO"
+ nmh(1)

Index: slocal.man
===================================================================
RCS file: /cvsroot/nmh/nmh/man/slocal.man,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -d -r1.6 -r1.6.2.1
*** slocal.man  25 Jan 2001 21:15:59 -0000      1.6
--- slocal.man  24 Oct 2003 20:14:47 -0000      1.6.2.1
***************
*** 357,361 ****
  
  # always run rcvtty
! *         \-        pipe    R       /nmh/lib/rcvtty
  .fi
  
--- 357,361 ----
  
  # always run rcvtty
! *         \-        pipe    R       %libdir%/rcvtty
  .fi
  

Index: send.man
===================================================================
RCS file: /cvsroot/nmh/nmh/man/send.man,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -C2 -d -r1.7.2.1 -r1.7.2.2
*** send.man    28 Feb 2003 19:08:36 -0000      1.7.2.1
--- send.man    24 Oct 2003 20:14:47 -0000      1.7.2.2
***************
*** 48,52 ****
  will cause each of the specified files to be delivered
  to each of the destinations in the \*(lqTo:\*(rq, \*(lqcc:\*(rq,
! \*(lqBcc:\*(rq, and \*(lqFcc:\*(rq fields of the message.  If
  .B send
  is re\-distributing a message, as invoked from
--- 48,52 ----
  will cause each of the specified files to be delivered
  to each of the destinations in the \*(lqTo:\*(rq, \*(lqcc:\*(rq,
! \*(lqBcc:\*(rq, \*(lqDcc:\*(rq, and \*(lqFcc:\*(rq fields of the message.  If
  .B send
  is re\-distributing a message, as invoked from
***************
*** 196,199 ****
--- 196,215 ----
  new message with a minimal set of headers.  Included in the body of the
  message will be a copy of the message sent to the sighted recipients.
+ .PP
+ If a \*(lqDcc:\*(rq field is encountered, its addresses will be used for
+ delivery, and the \*(lqDcc:\*(rq field will be removed from the message.  The
+ blind recipients will receive the same message sent to the sighted
+ recipients. *WARNING* Recipients listed in the \*(lqDcc:\*(rq field receive no
+ explicit indication that they have received a \*(lqblind copy\*(rq.
+ This can cause blind recipients to
+ inadvertently reply to all of the sighted recipients of the
+ original message, revealing that they received a blind copy.
+ On the other hand, since a normal reply to a message sent
+ via a \*(lqBcc:\*(rq field
+ will generate a reply only to the sender of the original message,
+ it takes extra effort in most mailers to reply to the included
+ message, and so would usually only be done deliberately, rather
+ than by accident.
+ .PP
  If
  .B \-filter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]