Here's my problem, it's driving me nuts! It occurs with all versions
including the 1.0 release of nmh (from which the below is taken).
When I incorporate mail by typing 'inc' on the command line, and
I have an existing .mh_sequences file in my inbox directory, the
.mh_sequences file gets deleted and hence I lose all my sequence
info. When I incorporate using clicking on 'inc' using exmh-2.0.2,
everything works like it should (mail is incorporated and new message is
marked unread). If there is no existing /home/orf/inbox/.mh_sequences,
none is created when I type 'inc' by hand.

The deletion is occuring in seq_save.c at line 106:

    if (fp) {
        fclose (fp);
        SIGPROCMASK (SIG_SETMASK, &oset, &set);  /* reset signal mask */
    } else {
        /*
         * If folder is not readonly, and we didn't save any
         * public sequences, then remove that file.
         */
        if (!is_readonly(mp))
            unlink (seqfile); /* deletion occuring here! */
    }

I don't understand why *fp is null, for one.

Here's the mp structure for this folder:

(xxgdb) p *mp
$6 = {
  lowmsg = 1, 
  hghmsg = 400, 
  nummsg = 399, 
  lowsel = 0, 
  hghsel = 0, 
  numsel = 0, 
  curmsg = 400, 
  msgflags = 8, 
  foldpath = 0x808c4d0 "/home/orf/Mail/inbox", 
  msgattrs = {0x808d740 "cur", 0x808d7d0 "unseen", 0x0 <repeats 26 times>}, 
  attrstats = 96, 
  lowoff = 1, 
  hghoff = 499, 
  msgstats = 0x808cf70
}

Here are permissions, since I think this is where the problem may be:

home[1002]:/home/orf/Mail/inbox% ls -ld /home/orf/Mail
/home/orf/Mail/inbox / >
drwx--x--x  25 orf      user1        2048 Mar 13 09:39 /home/orf/Mail/
drwx--x--x   4 orf      user1       30720 Mar 13 09:40 /home/orf/Mail/inbox/
-rw-r--r--   1 orf      user1          12 Mar 13 09:40 
/home/orf/Mail/inbox/.mh_sequences

I have multiple mailbox files, and a funny thing is, if I do    

inc +work/ssecmail -file ${HOME}/.ssecmail -truncate 

I don't have this problem in +work/ssecmail; the .mh_sequence file
is updated correctly as would be expected.  Is this a permissions
thing? Help! I doubt this will help but here is my .mh_profile file:

home[1006]:/home/orf% cat .mh_profile
Path: /home/orf/Mail
showproc: mhl
moreproc: less
rmmproc: /usr/bin/rmmer
Editor: vi
Alternate-Mailboxes:
[EMAIL PROTECTED],orf@*.ssec.wisc.edu,[EMAIL PROTECTED],[EMAIL PROTECTED],orf@*.binc.net
Aliasfile: /home/orf/Mail/alias_txt
Signature: Leigh Orf
Unseen-Sequence: unseen
Sequence-Negation: not
Draft-Folder: drafts
repl: -fcc +outbox -cc all -nocc me -form replcomps -filter replfilter -annotate 
-inplace
scan: -form /home/orf/.mh_formats/scan.size
inc: -form /home/orf/.mh_formats/scan.size
refile: -normmproc
mhn-show-text/x-pgp: pgp -m %F
Msg-Protect: 600
send: -push

Thanks,

Leigh Orf

Reply via email to