[comp.mail.mh] Corrupted .mh_sequences file

jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) (08/30/90)

When I use 'scan -file' on my maildrop, it seems to put most or all of the
messages from my inbox folder into the 'pseq' sequence.  I'm not sure whether
this is a feature or a bug :-).. but my folder is so huge that the long
sequence makes MH think my sequences file is corrupted:

$ folder
                 inbox+ has 1185 messages (   1-2764); cur=2764; (others).
$ grep pseq ~/.mh_profile
Previous-Sequence: pseq
$ mark -list -seq pseq
pseq: 2764
$ scan -file /usr/spool/mail/jdpeek
   1  08/30 ACS UNIX Consulti  test<<test of scan -file. >>
$ mark -list -seq pseq
mark: /u3/acs/jdpeek/.Mail/inbox/.mh_sequences is poorly formatted
$ grep pseq ~/.Mail/inbox/.mh_sequences
pseq: 1-21 23 25-33 35-37 39-41 44 46-83 85-91 102 138 140 142-144 146 157-159 1
	...this goes on for lines and lines...
2720 2722 2725 2727-2729 2733 2736-2737 2743-2744 2746 2748-2752 2756 2758 2760
2762-2764
$ scan -help | tail -4
version: MH 6.7 #1[UCI] (eeyore.cns.syr.edu) of Wed Aug 22 13:23:31 EDT 1990
options: [BIND] [BSD42] [BSD43] [DUMB] [FOLDPROT='"0700"'] [MHRC]
         [MSGPROT='"0600"'] [RPATHS] [SUN40] [TYPESIG='void'] [ZONEINFO]
         [SENDMTS] [SMTP] [POP]

Ideas, anybody?

--Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY
  jdpeek@rodan.acs.syr.edu, JDPEEK@SUNRISE.BITNET        +1 315 443-3995

marvit@HPLPM.HPL.HP.COM (Peter Marvit) (08/31/90)

> When I use 'scan -file' on my maildrop, it seems to put most or all of the
> messages from my inbox folder into the 'pseq' sequence.  I'm not sure whether
> this is a feature or a bug :-).. but my folder is so huge that the long
> sequence makes MH think my sequences file is corrupted:

[[ stuff deleted ]]

> Ideas, anybody?

Unfortunately, you'll have to recompile MH.  Specifically, in
sbr/m_gmsg.c, sbr/m_readefs.c, sbr/m_seq.c, and sbr/m_sync.c, increase
the length of message sequence field (usually a char field[BUFSIZ]) to
2*BUFSIZE (about 2048) or larger.  Your binaries will be a bit larger,
but you shouldn't see any other problems.

I left it out of MH 6.7, so I don't have any diffs.

	-Peter "Being there" Marvit


: Peter Marvit   Hewlett-Packard Labs in Palo Alto, CA   (415) 857-6646    :
: Internet: <marvit@hplabs.hpl.hp.com>  uucp: {any backbone}!hplabs!marvit :