Re: record and the current mailbox pointer
- To: mutt-users@xxxxxxxx
- Subject: Re: record and the current mailbox pointer
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Mon, 10 Mar 2008 13:54:25 -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; q=dns/txt; s=default; bh=Z1TlfYL523ZSqI4Niglvv6Q2/4 A=; b=XExSVfGZV4WcSdy5mzbMerTXlhWB4d2pA2pw16VnyVElrpTHrtScbTI15z /74EWpIY+JNiZf7n1RTGSX8dqwAgG8RuPob1zeIfznJTWbg07hblyvh8lTkJu6Bl C43AqU7uHxJ4JTMUgEZvkj5PW3D0AJ/QOzL3xTEqa/K35kYgE=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=QN2Z2CIkTT1Wg5WvSvc6hqnqDHAbE0rI1RBXnZwn3S1FBd/NXlK/C/sPkHoaTbFfWZEQFSdljP/rUgBsZMEnT4YoXPEJe8pa3pboauN8qyfEE4pEfzxA2SeDRsC0pyCMa30uesFXupCYVrLXcLFkmrEABYZLUegcjp33B3NBIn8=; 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: <20080310184516.GB3844@portable-dbn>
- 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: <20080310184516.GB3844@portable-dbn>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2008-02-27)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, March 10 at 07:45 PM, quoth Didier BRETIN:
> I setup the record variable to this pointer in my .muttrc:
> set record="^"
Something to keep in mind is this: shortcuts are resolved right away,
not later. $record is not re-interpreted later (unless you force it to
be). So, as far as mutt sees, what happens when you set that in your
muttrc is this:
mutt says "ah, you wish to set $record to the current folder"
mutt asks "what is the current folder?"
mutt answers "there is no current folder - I'm just reading my rc
file for the first time"
mutt says "okay, so $record is set to the empty string"
So, you used the right syntax, and mutt did exactly what you told it
to do.
In order to set the FCC to be the current mailbox whenever you send a
mail, you would need to have something like the following in your
muttrc file:
folder-hook . 'set record="^"'
What that does is forces $record to be changed to the current folder
whenever you open a new folder.
~Kyle
- --
I love America more than any other country in this world, and, exactly
for this reason, I insist on the right to criticize her perpetually.
-- James Baldwin, Notes of a Native Son
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFH1YPhBkIOoMqOI14RAq+MAJ0Z5catyvKDODoQDvyGSg2hOjsN0QCff1eB
lDkiD7B3vz45zJE0Lx8Q37g=
=KBE+
-----END PGP SIGNATURE-----