Re: get mail in directory browser
- To: mutt-users@xxxxxxxx
- Subject: Re: get mail in directory browser
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Mon, 6 Apr 2009 22:39:17 -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=1wbxWmBs/9lvX8sxII6QpOPC030=; b=Kosl CRbL3NB9VLgUvnHPOzuBNMWYte8/g0TmluCEdM1l+lreDgkxFrrS+OsWWw9PJjA5 KynEqD+Lp5Bj1totXLgB15ZdG/d55Tf4aW8ZvDEzj7vC+QM7EvsBgnBaKCykvulL k6M/Z20LqhWAPqZCuelFwUSAuAnW1b3SeYbBbsM=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=VYEpvYqaQjwHaLPlVlmvqbePsN0nQdBAc5szPXlm9xSiu722+IncVxz89mt7p0X1MsXpQ5bQmeqLoYxVAw8gyVEnT9tuz9ufySRLUmhBd9uVjK3J9Ff/KHSVKx0g5E+y8MmXALCBGJ4FrBoviDP2TENA5sjQWz4gLCoEh+jrq+Y=; 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: <20090407025608.GA13448@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- 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: <20090407025608.GA13448@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-04-06)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, April 6 at 09:56 PM, quoth Zhengquan Zhang:
>macro index,pager G "! /usr/bin/getmail -v \n" "Invoke getmail"
>
>to get mail from pop servers.
While simple-looking, it's generally a better idea to call the
functions you want to use directly from your macro, rather than use
keybindings that may later change. For example, if you ever decide to
rebind the ! key, or bind the "! " combination, this macro would stop
working unexpectedly.
Here's a better way of writing the same macro:
macro index,pager G "<shell-escape>/usr/bin/getmail -v<enter>" \
"Invoke Getmail"
>But as you see the macro works only in index and pager environment.
>I also want to be able to get mail when I was in directory browser, that
>is when I was changing mailboxes.
Easy - just add another comma:
macro index,pager,browser G ...etc...
OR you could try:
macro generic G ...etc...
But that latter would be overridden by any
index/pager/browser-specific G keybindings.
~Kyle
- --
The average Ph.D thesis is nothing but the transference of bones from
one graveyard to another.
-- J. Frank Dobie, "A Texan in England"
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAknayuUACgkQBkIOoMqOI16lowCbBu4J7u/BR/UtzDaCiInaBeUA
S0MAoMjF4fgKLMn7phMhlKuTFNe/9oLv
=J24c
-----END PGP SIGNATURE-----