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

Re: what shows %b?



* Thu Apr 27 2006 Rado S <rado@xxxxxxxxxxxxxxxxxxx>

> [=- TAKAHASHI Tamotsu wrote on Thu 27.Apr'06 at 12:27:22 +0900 -=]

> > %b is one of the most confusing features in muttrc.
> > In most cases, %b is not used within $index_format.
> > Usually, %b is not used as %b itself, but used as the fallback
> > of %B in save-hook.
> > ...
> > Yes, I agree %b is almost useless. ;)
> > But someone may want to save messages to =%b-read or =old/%b.
> 
> Wait, WAIT!
> You tell me this works so that you don't need "current-folder"
> patch because it can be achieved via %b?!?!?! :)

No, %b doesn't be the full pathname of your current folder.
It's just strrchr(ctx->path,'/')+1.


> WTF hasn't this usage of %-codes in hooks ever been documented?!

Dunno. I guess that's because there are many good FAQ and example
muttrc's, including wiki.mutt.org.

-- 
tamo