Re: folder-hook that never matches inbox
- To: mutt-users@xxxxxxxx
- Subject: Re: folder-hook that never matches inbox
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 7 Mar 2008 16:44:49 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date: from:to:subject:message-id:references:mime-version:content-type: in-reply-to; q=dns/txt; s=default; bh=UaMcpiCfWjJjSUuIMv5xD7fYlh Q=; b=Ok3yFY+rov8H718zZCySAZLt3neRlh+BqZd+yvO4gHcM2reaTdB2jIW5Xi jzDAsCR/0AgzKJfVrhQpk5bl1LibBj/UGVCQGxc+KwitsVFfmwaIYPJjbEcvWTJS Ow95usRycI3nOT2egORpyaozzJE+dOhQA2uWrbxZ6ZfUmEgWs=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=KNS/cMPlEXIFjIlzV19IOMyj5VtqyDnRe1gjSlzjiSN7W8cce5V6TGi3NHQBGlCMcJzc6i2zydgwAGXacD4HX62HCxx5L1roJrSMh5Uo7+foJJili1qseoLslhJGvg68twvNvoQFeiUGjmmddy/QYlDuEPHb5TKbmt3Vk/yJXoo=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080307215044.GA6742@xxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080307215044.GA6742@xxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2008-02-27)
-----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-----