nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] What am I doing wrong: refile -retainsequences, when s


From: David Levine
Subject: Re: [Nmh-workers] What am I doing wrong: refile -retainsequences, when src and destination are the sane directory
Date: Mon, 16 Jun 2014 21:04:59 -0400

Norm wrote:

> ~ folder +inbox
> inbox+ has 16 messages  (1-16).
> ~ pick -sequence a -subject "nmh 1.6 has been released"
> 1 hit
> ~ scan a
>     12  06/15 Ken Hornstein      [Nmh-workers] nmh 1.6 has been 
> released!<<------- =_a
> ~ refile a +inbox -retainsequences
> ~ scan a
> scan: bad message list a

That's a bug:  -retainsequences doesn't add the new message
number to the sequence when refiling a message within one
folder.  Here are the relevant steps of what refile does in
that case (for one message):

1) copies the old message to the new file
2) adds the new message number to the sequence
3) removes the old message number from the sequence

It writes the sequences file out in step 2), so you can see
both the old and new message numbers in the sequence then.

I don't know why it clobbers the new message number in step 3).
I haven't unravelled the struct msgs data structure and the
operations on it.  Anyone?

In this case, there was only one message in the sequence, so the
"empty" sequence was removed in step 3).

David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]