]> diplodocus.org Git - nmh/blobdiff - man/mh-sequence.man
lock_file.c: close(2) file descriptor on failure, avoiding leak.
[nmh] / man / mh-sequence.man
index 4b1e19200b9c0d151757b9c2c2566d3f24aaf436..dd14973ac58eef8d0f72b75d45abd205f91daaba 100644 (file)
@@ -1,21 +1,20 @@
-.TH MH-SEQUENCE %manext5% "June 11, 2013" "%nmhversion%"
-.\"
+.TH MH-SEQUENCE %manext5% 2013-10-17 "%nmhversion%"
+.
 .\" %nmhwarning%
 .\" %nmhwarning%
-.\"
+.
 .SH NAME
 mh-sequence \- sequence specification for nmh message system
 .SH DESCRIPTION
 A sequence (or sequence set) is a symbolic name representing a
 message or collection of messages.
 .B nmh
 .SH NAME
 mh-sequence \- sequence specification for nmh message system
 .SH DESCRIPTION
 A sequence (or sequence set) is a symbolic name representing a
 message or collection of messages.
 .B nmh
-has several internally
-defined sequences, as well as allowing users to define their own
-sequences.
-.SS "Message Specification and Pre\-Defined Message Sequences"
+has several internally defined sequences, as well as allowing
+users to define their own sequences.
+.SS "Message Specification and Pre-Defined Message Sequences"
 Most
 .B nmh
 Most
 .B nmh
-commands accept a `msg' or `msgs' specification, where
-`msg' indicates one message and `msgs' indicates one or more messages.
+commands accept a `msg' or `msgs' specification, where `msg'
+indicates one message and `msgs' indicates one or more messages.
 To designate a message, you may use either its number (e.g., 1, 10, 234)
 or one of these \*(lqreserved\*(rq message names:
 .PP
 To designate a message, you may use either its number (e.g., 1, 10, 234)
 or one of these \*(lqreserved\*(rq message names:
 .PP
@@ -40,7 +39,7 @@ the message numerically following \*(lqcur\*(rq
 .PD
 .PP
 In commands that take a `msg' argument, the default is \*(lqcur\*(rq.
 .PD
 .PP
 In commands that take a `msg' argument, the default is \*(lqcur\*(rq.
-As a shorthand, \*(lq\&.\*(rq is equivalent to \*(lqcur\*(rq.
+As a shorthand, \*(lq.\*(rq is equivalent to \*(lqcur\*(rq.
 .PP
 For example: In a folder containing five messages numbered 5, 10, 94, 177
 and 325, \*(lqfirst\*(rq is 5 and \*(lqlast\*(rq is 325.  If \*(lqcur\*(rq
 .PP
 For example: In a folder containing five messages numbered 5, 10, 94, 177
 and 325, \*(lqfirst\*(rq is 5 and \*(lqlast\*(rq is 325.  If \*(lqcur\*(rq
@@ -90,12 +89,11 @@ command.
 In addition to the \*(lqreserved\*(rq (pre-defined) message names given
 above,
 .B nmh
 In addition to the \*(lqreserved\*(rq (pre-defined) message names given
 above,
 .B nmh
-supports user-defined sequence names.  User-defined
-sequences allow the
+supports user-defined sequence names.  User-defined sequences allow the
 .B nmh
 .B nmh
-user a tremendous amount of power in dealing
-with groups of messages in the same folder by allowing the user to bind
-a group of messages to a meaningful symbolic name.
+user a tremendous amount of power in dealing with groups of messages
+in the same folder by allowing the user to bind a group of messages
+to a meaningful symbolic name.
 .PP
 The name used to denote a message sequence must consist of an alphabetic
 character followed by zero or more alphanumeric characters, and can not
 .PP
 The name used to denote a message sequence must consist of an alphabetic
 character followed by zero or more alphanumeric characters, and can not
@@ -134,7 +132,6 @@ defined using the
 and
 .B mark
 commands.
 and
 .B mark
 commands.
-.PP
 .SS "Public and Private User-Defined Sequences"
 There are two varieties of user-defined sequences:
 public and private.  Public sequences of a folder are accessible to any
 .SS "Public and Private User-Defined Sequences"
 There are two varieties of user-defined sequences:
 public and private.  Public sequences of a folder are accessible to any
@@ -142,7 +139,7 @@ public and private.  Public sequences of a folder are accessible to any
 user that can read that folder.  They are kept in each folder
 in the file determined by the \*(lqmh\-sequences\*(rq profile entry
 (default is
 user that can read that folder.  They are kept in each folder
 in the file determined by the \*(lqmh\-sequences\*(rq profile entry
 (default is
-.IR \&.mh\(rusequences ).
+.IR \&.mh_sequences ).
 Private sequences are accessible
 only to the
 .B nmh
 Private sequences are accessible
 only to the
 .B nmh
@@ -163,7 +160,7 @@ For most commands, this can be overridden by using the switches
 .B \-public
 and
 .BR \-private .
 .B \-public
 and
 .BR \-private .
-But if the folder is read\-only, or if
+But if the folder is read-only, or if
 the \*(lqmh\-sequences\*(rq profile entry is defined but empty, then
 \fIprivate\fR sequences will be created instead.
 .SS "Sequence Negation"
 the \*(lqmh\-sequences\*(rq profile entry is defined but empty, then
 \fIprivate\fR sequences will be created instead.
 .SS "Sequence Negation"
@@ -182,7 +179,7 @@ the profile entry is:
 Sequence\-Negation: not
 .RE
 .PP
 Sequence\-Negation: not
 .RE
 .PP
-then anytime an
+then any time an
 .B nmh
 command is given \*(lqnotfoo\*(rq as a `msg' or
 `msgs' argument, it would substitute all messages that are not elements
 .B nmh
 command is given \*(lqnotfoo\*(rq as a `msg' or
 `msgs' argument, it would substitute all messages that are not elements
@@ -200,11 +197,11 @@ should be defined in the
 .B nmh
 profile; its value should be a sequence
 name or multiple sequence names, as separate arguments.  If this entry
 .B nmh
 profile; its value should be a sequence
 name or multiple sequence names, as separate arguments.  If this entry
-is defined, when when an
+is defined, when an
 .B nmh
 .B nmh
-command finishes, it will define the
-sequence(s) named in the value of this entry to be those messages that
-were specified to the command.  Hence, a profile entry of
+command finishes, it will define the sequence(s) named in the value
+of this entry to be those messages that were specified to the command.
+Hence, a profile entry of
 .PP
 .RS 5
 Previous\-Sequence: pseq
 .PP
 .RS 5
 Previous\-Sequence: pseq
@@ -212,8 +209,8 @@ Previous\-Sequence: pseq
 .PP
 directs any
 .B nmh
 .PP
 directs any
 .B nmh
-command that accepts a `msg' or `msgs' argument to
-define the sequence \*(lqpseq\*(rq as those messages when it finishes.
+command that accepts a `msg' or `msgs' argument to define the sequence
+\*(lqpseq\*(rq as those messages when it finishes.
 .PP
 .BR Note :
 there can be a performance penalty in using the
 .PP
 .BR Note :
 there can be a performance penalty in using the
@@ -221,32 +218,30 @@ there can be a performance penalty in using the
 .B all
 .B nmh
 programs have to write the sequence information to the
 .B all
 .B nmh
 programs have to write the sequence information to the
-.I \&.mh\(rusequences
+.I \&.mh_sequences
 file for the folder each time they run.  If the
 \*(lqPrevious\-Sequence\*(rq profile entry is not included, only
 .B pick
 and
 .B mark
 will write to the
 file for the folder each time they run.  If the
 \*(lqPrevious\-Sequence\*(rq profile entry is not included, only
 .B pick
 and
 .B mark
 will write to the
-.B \&.mh\(rusequences
+.B \&.mh_sequences
 file.
 .SS "The Unseen Sequence"
 Finally, many users like to indicate which messages have not been
 previously seen by them.  The commands
 file.
 .SS "The Unseen Sequence"
 Finally, many users like to indicate which messages have not been
 previously seen by them.  The commands
+.BR flist ,
 .BR inc ,
 .BR inc ,
-.BR rcvstore ,
-.BR show ,
 .BR mhshow ,
 .BR mhshow ,
+.BR rcvstore ,
 and
 and
-.B flist
-honor the profile entry
-\*(lqUnseen\-Sequence\*(rq to support this activity.  This entry
-in the
-.I \&.mh\(ruprofile
-should be defined as one or more sequence
-names, as separate arguments.  If there is a value for
-\*(lqUnseen\-Sequence\*(rq in the profile, then whenever new messages
-are placed in a folder (using
+.B show
+honor the profile entry \*(lqUnseen\-Sequence\*(rq to support this
+activity.  This entry in the
+.I \&.mh_profile
+should be defined as one or more sequence names, as separate arguments.
+If there is a value for \*(lqUnseen\-Sequence\*(rq in the profile,
+then whenever new messages are placed in a folder (using
 .B inc
 or
 .BR rcvstore ),
 .B inc
 or
 .BR rcvstore ),
@@ -262,7 +257,7 @@ directs
 to add new messages to the sequence \*(lqunseen\*(rq.
 Unlike the behavior of the \*(lqPrevious\-Sequence\*(rq entry in the
 profile, however, the sequence(s) will
 to add new messages to the sequence \*(lqunseen\*(rq.
 Unlike the behavior of the \*(lqPrevious\-Sequence\*(rq entry in the
 profile, however, the sequence(s) will
-.B not
+.I not
 be zeroed by
 .BR inc .
 .PP
 be zeroed by
 .BR inc .
 .PP
@@ -272,15 +267,14 @@ Similarly, whenever
 .BR next ,
 or
 .B prev
 .BR next ,
 or
 .B prev
-displays a message, that message will be removed from
-any sequences named by the \*(lqUnseen\-Sequence\*(rq entry in the
-profile.
+displays a message, that message will be removed from any sequences
+named by the \*(lqUnseen\-Sequence\*(rq entry in the profile.
 .SS Sequence File Format
 .SS Sequence File Format
-The sequence file format is based on the RFC\-5322 message format.  Each line
+The sequence file format is based on the RFC 5322 message format.  Each line
 of the sequence file corresponds to one sequence.  The line starts with the
 of the sequence file corresponds to one sequence.  The line starts with the
-sequence name followed by a `:', then followed by a space-separated list of message numbers
-that correspond to messages that are part of the named sequence.  A contiguous
-range of messages can be represented as \*(lqlownum\-highnum\*(rq.
+sequence name followed by a `:', then followed by a space-separated list of
+message numbers that correspond to messages that are part of the named sequence.
+A contiguous range of messages can be represented as \*(lqlownum\-highnum\*(rq.
 .PP
 .B Sample sequence file
 .PP
 .PP
 .B Sample sequence file
 .PP
@@ -309,7 +303,7 @@ commands are run simultaneously.
 commands that modify the sequence file use transactional locks; the lock
 is held from the time the sequence file is read until it it written out.
 This ensures that modifications to the sequence file will not be lost
 commands that modify the sequence file use transactional locks; the lock
 is held from the time the sequence file is read until it it written out.
 This ensures that modifications to the sequence file will not be lost
-if multiple commands are run simultaneously.  Long\-running
+if multiple commands are run simultaneously.  Long-running
 .B nmh
 commands, such as
 .B inc
 .B nmh
 commands, such as
 .B inc
@@ -319,24 +313,22 @@ will release the sequence lock during the bulk of their runtime and reread
 the sequence file after their processing is complete to reduce lock
 contention time.
 .PP
 the sequence file after their processing is complete to reduce lock
 contention time.
 .PP
-.B Note:
-Currently transactional locks are
-.B only
-supported for public sequences; private sequences will not get corrupted, but
-the possibility exists that two
+Note:
+Currently transactional locks are only supported for public sequences;
+private sequences will not get corrupted, but the possibility exists that two
 .B nmh
 commands run simultaneously that add messages to a private sequence could result in
 one command's messages not appearing on the requested sequence.
 .SH FILES
 .PD 0
 .TP 20
 .B nmh
 commands run simultaneously that add messages to a private sequence could result in
 one command's messages not appearing on the requested sequence.
 .SH FILES
 .PD 0
 .TP 20
-$HOME/\&.mh\-profile
+$HOME/.mh\-profile
 The user's profile.
 .TP 20
 The user's profile.
 .TP 20
-<mh\-dir>/context
+<mh-dir>/context
 The user's context.
 .TP 20
 The user's context.
 .TP 20
-<folder>/\&.mh\-sequences
+<folder>/.mh\-sequences
 File for public sequences.
 .PD
 .SH "PROFILE COMPONENTS"
 File for public sequences.
 .PD
 .SH "PROFILE COMPONENTS"