Re: macro question
- To: mutt-users@xxxxxxxx
- Subject: Re: macro question
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Thu, 7 Aug 2008 00:44:14 -0500
- 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; s=default; bh=ppNuU4trWssft4QAtfEEqQdkEA0=; b=inbU FStB8/nZpEIREmUIz2un2gxuJ264vLAhqPrjPYnIwZ1IZqn+RBKoV8tNj8t7BYhn v+4ZF6VggGxvduv9nZ4L0PfGXM1FLjRtdXUnHCdS1+RvooGRno75Lx+FfMWYJ+cb wea8CkLKQtzwy+lWsib82IwgkGLrtnRMHC54jqA=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=ZYAE0Qz2V99/PMu53ZucIlNA8Kunqcu7KxKzsbsztKY8RA8bKKuNUWuAh0RIX1im67LXflQcTiqGpOwSwg3STHR4SqmP1Pa70kqqaX214ASDmmmt6a3Qb9sv1ECboVSFuI7w5w4+RZMdRY0Hb9nm6zpfylfp2ZyaODn2qmRnSLs=; 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: <20080806213249.GA5246@xxxxxxxxxxxxxxxxxx>
- 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: <20080806213249.GA5246@xxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-07-21)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, August 6 at 11:32 PM, quoth Thorsten Scherf:
> in my muttrc I have the following:
>
> folder-hook . 'macro index,pager d <delete-message>'
> folder-hook 'INBOX$' \
> 'macro pager,index d "<save-message>+INBOX.Trash<enter>"'
>
> this should move my deleted mails from INBOX to the trash folder. but it
> doesn't work.
Hmmm... What is the value of $folder? How about this (untested):
folder-hook = \
'macro pager,index d "<save-message>+INBOX.Trash<enter>"'
I'm guessing that the inbox is referred to in mutt's innards slightly
differently than you're expecting for whatever reason.
Obviously, it's the regex that's the issue. You could also just try
something simple like adding:
folder-hook I 'set my_var=testing; set ?my_var'
... And if that works, build it up from there:
folder-hook IN 'set my_var=testing2; set ?my_var'
~Kyle
- --
Next in importance to freedom and justice is popular education,
without which neither freedom nor justice can be permanently
maintained.
-- James A. Garfield
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkiai64ACgkQBkIOoMqOI179ywCguveJRSpIQbpoBHRGBAj61G5l
pc4An2Ry5CowP+xAmEM9/baP1JqrbX9W
=jb+z
-----END PGP SIGNATURE-----