-----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 ([EMAIL PROTECTED]). 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 [EMAIL PROTECTED]' 'my_hdr From: Mutt User <[EMAIL PROTECTED]>' > to send local email (the domain is "debian") having "[EMAIL PROTECTED]" > 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 [EMAIL PROTECTED] will ONLY match "@debian" and nothing else---it will not match [EMAIL PROTECTED], [EMAIL PROTECTED] or [EMAIL PROTECTED] either. ;) If you use this hook instead: send-hook '~t @debian$' 'my_hdr From: Mutt User <[EMAIL PROTECTED]>' ...then it WILL match all three examples I listed above, but will NOT match [EMAIL PROTECTED] (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-----