[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] refile and moving sequences with messages
From: |
Kevin Layer |
Subject: |
Re: [Nmh-workers] refile and moving sequences with messages |
Date: |
Wed, 13 Mar 2013 19:47:26 -0700 |
Ken Hornstein wrote:
>> >I'd like refile to move the sequences that my messages are in with the
>> >messages. (I'm using nmh 1.5.)
>> >
>> >So it doesn't do it, so I figured I'd write a fileproc that does it,
>> >but I can't really figure out how to do it.
>>
>> It occurs to me that it might be better/easier to use the refile hook. Okay,
>> you're probably wondering what that is. Check out docs/README-HOOKS, which
>> is probably installed as share/doc/README-HOOKS. I can't guarantee that
>> it's all working correctly; it's not a feature that is exercised by the
>> test suite and I don't know if people use it a lot. But the code is still
>> there and we haven't gone out of our way to break it. I know, that doesn't
>> sound encouraging, does it? I just wanted to be up-front in case it turns
>> out there's bugs in it and we didn't know about it.
It seems to work in my preliminary tests. echo'ing the arguments to
the program, I see it receives:
/home/layer/mail/ref-hook.sh: /home/layer/mail/inbox/174
/home/layer/mail/inbox-a/1
+inbox/174 and +inbox-a/1 (or something similar) would more
convenient, but I can easily extract what I need.
Thanks.
>> It does seem that it's not exactly easy to find out what sequences a message
>> is on. You'd think mark -list would do it, but not exactly. That might
>> require some changes to the "mark" command.
This is the last piece of the puzzle. I need to basically write the
predicate "is message N in sequence S?" Ideas on how to do that?
I've combed the man pages and haven't found a way, yet. Ideas
welcome.
What do you think about this functionality being added natively to
refile? Possibly via a command line switch? -retain-sequences or
something.
Kevin
Re: [Nmh-workers] refile and moving sequences with messages, Kevin Layer, 2013/03/14
Re: [Nmh-workers] refile and moving sequences with messages, Kevin Layer, 2013/03/14
Re: [Nmh-workers] refile and moving sequences with messages, Robert Elz, 2013/03/14