On Wed, Feb 06, 2002 at 05:36:23PM +0000, Patrick Colbeck wrote:

> Unfortunately I cannot get mutt to recognise the folder hook, no errors
> are generated but there is no change in the index format. If I change
> the global format even with a "folder hook ." then I do see a change.
> 
> I am using Mutt 1.3.22.1i on SuSE 7.2
> 
> Here is some of my muttrc (stolen from all over the net)
> 
> set folder=~/Mail
> 
> #folder-hook . 'set index_format="%4C %Z %{%b %d} %-15.15t (%4l) %s"'
> folder-hook . 'set index_format="%4C %Z %{%b %d} %-15.15t (%4l) %t"'
> 
> either of the two above work and change the index in all mailboxes
> 
> folder-hook +Spool/mutt-users my_hdr From: [EMAIL PROTECTED]
> folder-hook +Spool/mutt-users set signature=~/Signatures/bashq.sig
> folder-hook +Spool/mutt-users 'fcc-hook .* +Outgoing/mutt-user
> folder-hook +Outgoing/mutt-users 'set index_format="%4C %Z %{%b %d}
> %-15.15t (%4l) %s"'
> 
> The above doesnt work in that ~/Mail/Outgoing/mutt-users gets the same
> index as whatever is set as the default for all folders.

The only things wrong I can see are that the line

> folder-hook +Spool/mutt-users 'fcc-hook .* +Outgoing/mutt-user

has only one single-quote and that the line

> folder-hook +Outgoing/mutt-users 'set index_format="%4C %Z %{%b %d}
> %-15.15t (%4l) %s"'

wraps.  Otherwise, your use of the folder-hook looks fine, including
putting the default folder-hook first.  You said the index_formats
worked when set directly, so I didn't look closely at those.

HTH,
Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |

Reply via email to