<<< Date Index >>>     <<< Thread Index >>>

Re: Does mutt have any concept of "where I am now"?



On Sun, Aug 12, 2007 at 08:00:14PM +0100, Chris G wrote:

> Is there any way in mutt to know where one is in a hierarchy of mail?

No, but you can use folder-hook to set the default save folder.  Of
course, this is really a bear because you have to repeat it for every
folder...

For example:

folder-hook =foo/bar save-hook . =archive/foo/bar

This means that in the folder =foo/bar, hitting s defaults to
=archive/foo/bar as the save folder.  (The "." in the middle means 'for
all senders, if you wrote carl there then it'd apply only to messages
from carl.)

I think what's needed is a script that produces a list of folder names,
then emits one folder-hook statement for each.

Kai