Re: locale and external address
- To: mutt-users@xxxxxxxx
- Subject: Re: locale and external address
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Thu, 6 Dec 2007 15:56:35 -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:content-transfer-encoding:in-reply-to; q=dns/txt; s=default; bh=JPTjBe9ocw/UZ3MQF7EKrNprzSE=; b=E/GaHj+xCdHONtxtIblp/TuMhvUStkWMOdc3NV8SswDNWEMvur5+fiYrAimQAeyZoHl4iWMKxYdX+J76ydNMsjnhH3Bqcup8OvrxE/xcH8rNR0LHbkeG3DaPION95TeGtHgiNfhiFEJ5cbm+ngSwzmS5LGZWJTUxd9PX484uII8=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=KMjZ74HARD2y0yboDsXSpmY9beE9kv0EV6J14l50Lp6vEVTK27iT4vpiyNjuHWcfr+JR4ETDB2ejKYgKztNhkTXA9uZV3a6HOvPrzowFAtXCQoe/DFVWJIq+r2SPNeDzP4FoETJtcQ/Q7APUdqSpRfSBibxkIT9OYIaCjkx2wBg=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:User-Agent;
- In-reply-to: <200712062236.36558.mauro.sacchetto@xxxxxxxx>
- 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
- References: <20071206131602.GC5064@debian> <20071206154755.GC4078@xxxxxxxxxxxxxxxxxxxxxxxxx> <200712062236.36558.mauro.sacchetto@xxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2007-11-21)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, December 6 at 10:36 PM, quoth Mauro Sacchetto:
> Alle giovedì 6 dicembre 2007, Rado S ha scritto:
>>> I've an address for outgoing mail (with my provider's domain) and
>>> a local one (samiel@debian). When I send local mail, in the header
>>> I fond always, as "From" field, the external address. There is a
>>> way to tell Mutt to use the external address only for outgoing
>>> emails and the internal one for local mail?
>
> I tried the following:
> send-hook '~t ^@debian$' 'my_hdr From: Mutt User <samiel@debian>'
> to send local email (the domain is "debian") having "samiel@debian"
> as sender, but it doesn't work. There is a misteke in format?
Yes. When you use the ^ in your pattern, you're telling it to match
the beginning of the address (the $ at the end tells it to match the
end of the address). Thus ^@debian$ will ONLY match "@debian" and
nothing else---it will not match samiel@debian, foo@debian or
whydoesntthisstupidthingwork@debian either. ;)
If you use this hook instead:
send-hook '~t @debian$' 'my_hdr From: Mutt User <samiel@debian>'
...then it WILL match all three examples I listed above, but will NOT
match samiel@xxxxxxxxxxxxxxxxxx (because the $ at the end is still
there). Make sense?
For more details, read up on "regular expressions" (Google should have
plenty of info).
~Kyle
- --
Come to me, son of Jor-El. Kneel before Zod. Snootchie-bootchies.
-- Jay
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFHWHATBkIOoMqOI14RArFdAJ0ek6TMAK3j0z0BuTXHtXHdZ4CuWwCfSbu7
vrcxV2l++TRrM1NI1hILibk=
=tOEU
-----END PGP SIGNATURE-----