On 29 August 2000 at 21:54, John Reinhagen <[EMAIL PROTECTED]> wrote:
> 2.  How important is order in an nmh sequence?

The sequence is physically stored in one of two places:

- the file named in the "mh-sequences:" nmh profile entry; that's
  typically a file named ".mh_sequences" in each folder.  In this
  file, the sequence is stored on a long line (no newlines) starting
  with the sequence name.  For example, a sequence named "temp":

  temp: 1295 1302 1310 1314 1327 1330 1334 1343 1348-1349 1369-1370 1375 ...

  (I put in the the ... to mean "this line continues").

- the file named "context" in the user's nmh directory (typically
  $HOME/Mail).  In this file, a sequence is stored on a line starting
  with atr-<seqname>-<folder-path>.  For example, the sequence named
  "temp" in the folder +m/nmh-workers is stored like this:

  atr-temp-/u/jpeek/Mail/m/nmh-workers: 3-5 7-8 10 15 18-19 30 46 51 ...

In both cases, ranges of two or more contiguous message numbers are
stored with a dash (-) separating the first and last message numbers
in the range.

If I remember right, the context file didn't used to have the full
pathname of the folder if the folder was a subfolder of the user's MH
(nmh) directory.  Otherwise, the format of these files has been the same
as long as I can remember (which is more than 15 years...).  

nmh utilities (for example, mhpath, forw, show, refile, scan, etc.)
use these files to map the sequence names to their message numbers.  

Jerry
-- 
Jerry Peek, [EMAIL PROTECTED], http://www.jpeek.com/

Reply via email to