On Fri, May 31, 2002 at 02:27:09PM +0200, Rocco Rutte wrote:
> I have a problem with a folder-hook. Say, I've got three
> folders IN.back1, IN.back2 and IN.test. If I want to take
> some action for all folders except IN.back1 I use:
> 
>   folder-hook =IN\.[^b][^a][^c][^k][^1] ...
> 
> The problem is that mutt doesn't apply it to IN.test. I
> guess that for IN.test it checks if the first 5 characters
> after IN. are not one of b,a,c,k,1 - but 'test' is only 4
> long. I guess that's the reason why it fails in this special
> case while it works for all other folder names longer or
> equal to 5 characters after IN..

sounds to me that it's doing exactly what you told it to...  match any
folder that begins with an "IN.", followed by 5 chars that are not (in
order) "b" "a" "c" "k" "1" - and you're right - since "test" is only 4
characters, it doesn't match the "not 1" section.

I think you might be better off making a general folder hook (that will
match back1 as well), then adding another folder hook (after?  before?)
that will deal with the special case.

HTH!

-- 
Dan Boger
Linux MVP
brainbench.com

Attachment: msg28424/pgp00000.pgp
Description: PGP signature

Reply via email to