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

Re: folder-hook that never matches inbox



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, March  7 at 10:50 PM, quoth Angel Olivera:
> I am running Debian's 1.5.17+20080114-1 (which shouldn't matter) and  
> Dovecot 1.0, which maps my inbox to '=INBOX'.

Okay.

> I have $folder and $spoolfile set appropriately,

Heh, well, it's worth double-checking these things. From what you've 
said so far, I'm guessing this would be good:

     set folder=imaps://user@host/
     set spoolfile="=INBOX"

> yet folder-hooks that use '!' or '=INBOX' do not trigger when 
> changing to the inbox (this includes, of course, when starting 
> mutt).

Hmmm, well, my advice would be to build some patterns up from the 
basics and see where it might be going wrong. Try:

     folder-hook . 'set my_match=no'
     folder-hook = 'set my_match=yes'

Then, after you open up mutt and it opens up the $spoolfile, see what 
the value of $my_match is (set ?my_match). If it says its value is 
"yes", then build it up some more:

     folder-hook =I 'set my_match="=I"'
     folder-hook =IN 'set my_match="=IN"'
     folder-hook =INB 'set my_match="=INB"'
     folder-hook =INBO 'set my_match="=INBO"'
     folder-hook =INBOX 'set my_match="=INBOX"'

That way you can figure out where it's breaking down. If my_match is 
*no*, then you need to double-check what $folder is (set ?folder).

It may be that mutt's internal construction has an extra slash or 
something, and that your folder-hooks would match better like this:

     folder-hook =.INBOX 'set something'

But that's just a guess.

~Kyle
- -- 
If God can work through me, he can work through anyone.
                                               -- St. Francis of Assisi
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFH0cVhBkIOoMqOI14RAhbBAKDMD4CaPWVLcqNO8bgyA+iYo6bDtACeO4IV
23iP5P0ztooashAmmAj0JSA=
=+zxU
-----END PGP SIGNATURE-----