]> diplodocus.org Git - nmh/commit
mhfixmsg: Use folder name to open second message of a sequence.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 17 Jan 2017 12:54:02 +0000 (12:54 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 17 Jan 2017 12:54:02 +0000 (12:54 +0000)
commit66fa74b004d50df011eecdeac09b5e4f59181e12
treeae76a743c5da13e91347adbff4775d31b945d66b
parent103abacb78b3ed17dce5d47dfa65e97bf4f5377d
mhfixmsg: Use folder name to open second message of a sequence.

`mhfixmsg foo' where foo was sequence of more than one message would
sucessfully process the lowest numbered message of the sequence, but
fail to open(2) the second one as the folder was missing from the path.
For example, /home/ralph/mail/inbox/1 was used to open the first, but
/home/ralph/mail/2 was attempted for the second.  I guess this was
because a static array was being trampled during the first's processing,
though didn't try too hard to find where.  Making a copy of it fixed the
problem.
uip/mhfixmsg.c