[Top][All Lists]

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

Re: [Nmh-workers] exciting new stuff for 2.0

From: Joel Reicher
Subject: Re: [Nmh-workers] exciting new stuff for 2.0
Date: Fri, 23 Dec 2005 13:59:36 +1100

> On 22 December 2005 at 14:45, Michael Richardson <address@hidden>
>  wrote:
> > Is there any sane way to refile stuff (say a sequence) and specify what
> > sequence it winds up in on the target folder?
> Here's a halfway answer from refile(1):
>    If the "Previous-Sequence" profile entry is set, in addition to  defin-
>    ing the named sequences from the source folder, refile will also define
>    those sequences for the destination folders.  See mh-sequence  (5)  for
>    information concerning the previous sequence.
> You could make a front-end script to refile that does the refile
> job, then temporarily changes to that folder (with folder -push)
> and renames the sequence from <previous-sequence> to whatever you
> want (like the "mvseq" I just posted to the list), then uses
> folder -pop to go back to the original folder.  I think. ;-)

The Previous sequence is a fine idea when doing MH commands manually;
it's tantamount to !! in a shell, but I'm less fond of the idea of using
it in a script. It might be nice to add an argument to refile that does
essentially what this previous sequence does now in the destination
folder(s), so that the sequence name can be specified dynamically.

Alternatively, or perhaps additionally, a -verbose argument could be
added to refile which causes it to output the message renumberings it


        - Joel

reply via email to

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