Re: From variable and multiple account
- To: mutt-users@xxxxxxxx
- Subject: Re: From variable and multiple account
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Sun, 16 Nov 2008 14:57:45 -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; s=default; bh=FezAlWN5dinzkUJWb1MklxnhoEw=; b=PWMj BVel66WJ87kS6z19VCFHw7XolBHZVCZ7KaRF+5BBNuyO6o2gMSzVwpF+puTAjKyj LOa8SRJezAEHi6LyQG1t3GEpk5lAo5vizPxx7DxUrcpTxBnN+oSSjnyfEaF1PSmV EfJX1YY3RATUHpIyaoEIvXdgKPjCdw7vnwNgFNE=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=RFMyq7in8J8lpDmnbWKX2IDVr7Sp0D24WVGT7dWGqtzuGKlxEkptdvjgHPjDAH4Ir7Ynp4zkbIaInbL3bEdcEQ7gzwK3aCP6ok3eCJ32HySaxIxc1GGKSQCcMGZ2ksz0SK4dWPBxYQycommoYTktYlCVs80AMuBE3dPoXQmbk9I=; 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: <492079EC.4000809@xxxxxxxxxxx>
- 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: <492079EC.4000809@xxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-10-30)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday, November 16 at 08:52 PM, quoth Alberto Rizzi:
> I want to use four different "Form:" header depending on the folder
> I am in.
That's a fairly standard request.
> account-hook get executed only the first time I open a folder on
> that account
It's actually more complicated than that. Account hooks are run
whenever needed, as determined by mutt. They're designed primarily for
setting connection-based things, such as $imap_pass and that sort of
thing.
> Maybe I can use a folder-hook but how can I create the correct
> regexp? How?
What are the folders?
You can try something like this:
folder-hook imap://user@acct1host/ 'set from=user@domain1'
folder-hook imap://user@acct2host/ 'set from=user@domain2'
folder-hook imap://user@acct3host/ 'set from=user@domain3'
The details, of course, depend on exactly what your accounts are.
~Kyle
- --
You can get more with a kind word and a gun than you can with a kind
word alone.
-- Al Capone
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkkgiUkACgkQBkIOoMqOI141kACgjfYJBt35a4fDE6f2cYOO0RaW
A9sAniprcfXOna/eF9Avg2geL+ciuAl7
=whQv
-----END PGP SIGNATURE-----