Bennett Todd <[EMAIL PROTECTED]> wrote on Wed, 01 Mar 2000:
> So if you open an MH folder, tag all the messages with
> 
>       T~A
> 
> then save them all to a new folder with
> 
>       ;snew-folder
> 
> (that's a semicolon, it is the "tag prefix") that will convert the
> folder. However, since it's pretty darned interactive, it's not
> appealing for batch conversion of lots of old folders. For that you
> want something command-line.

Actually, it's not impossible to use Mutt from the command line for
that.  I'm not sure whether it's any *easier* than doing something else
(a specific script), but it's certainly possible to use the -e command
line switch to "push" all the necessary keystrokes into Mutt, eg.

mutt -f =folder-to-convert -e 'push T~A\n;snew-folder\nq'

The final q for quit may give you a prompt, which can be eliminated
by setting the right variable (I forget which right now).  The above
also assumes you have your $mbox_type variable set to the desired folder
format in your .muttrc.  And so, to convert a bunch of folders, you only
need a shell script wrapper around the above, calling Mutt each time
with the right old and new folder names.

Again, I'm not sure if this is any easier than using some real command
line tools, but I'm sure it can be made to work. :-)


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Signature under construction, beware of falling letters!

Reply via email to