Le 17-03-2010, à 09:51:24 -0400, Patrick Shanahan ([email protected]) a écrit :
> * steve <[email protected]> [03-17-10 09:14]: > > > > I receive an email with: > > > > > > > > From: [email protected] > > > > To: [email protected] > > > > > > > > (I don't have any special settings for [email protected]) > > > > > > > > I hit 'r' and I get: > > > > > > > > From: [email protected] > > > > To: [email protected] > > > > > > > > > > > > but I would like to have: > > > > > > > > From: [email protected] > > > > To: [email protected] > > > > > > > > > > > > How can I do this? Should I use a reply-hook? reverse_name? I'm a bit > > > > confused here. > > > > > > I would choose, send-hook, but from TFM: > > > > Why use send-hook when it's only for replying to messages? When I'm in > > my default inbox and I hit 'm', I get the correct address. > > What if you send a *new* message to [email protected]? If I'm in inbox, the From: header is correct. > What do you mean "in my default inbox"? It's the folder where all non-sorted (by procmail) goes. If you send me a private email it will go there. > > > My first idea was something like : > > > > reply-hook '~t ^[email protected]$" 'set from="[email protected]"' > > if it is *to* you, set from *you* ??? Perhaps I'm not reading that reply-hook correctly. I read: (sorry for the english, it's not my mother tongue, as you probably noticed it) For each mail addressed to [email protected], set the From header to [email protected] when replying to it. > reply-hook '^...@foo\.bar$ set from="[email protected]"' Mutt tells me that there is a syntax error; it doesn't complain anymore with the following line: reply-hook '^...@foo\.bar$' 'set from="[email protected]"' But anyway, it doesn't do what is expected. > > but this doesn't work, I still get my default address in the From: > > header. And if it worked, I then should have to add as many lines as > > email addresses I have, only changing me1 with me2 and so forth, and > > this seems strange to me. > > > > > > > > Then I tried: > > > > reply-hook '~t^[email protected]$' 'my_hdr From: [email protected]' > > reply-hook '~t m...@foo\.barr my_hdr From: "[email protected]"' Sorry for the misspelling, but doesn't work either. > > same thing. I'm missing something but I don't know what. > > As I said earlier, I would use send-hook: > > send-hook . unmy_hdr From: > send-hook me 'my_hdr From: <your perferred default>' > send-hook [email protected] set from="[email protected]" > send-hook [email protected] 'my_hdr From: "[email protected]"' Ok I tried that (I don't really understand why the two last lines are needed *together*, but that's beside the point now) and still the same. Thank you for your help, but as Rado said in another message, I guess I've got a messed up configuration and I should figure out why (I'm sure it's not mutt's fault). I'm trying to fine-tune my configuration with several files in which I source other file(s) and surely I've missed lots of mutt's "finesse" (in french)... this one issue is already a long-lasting one, and I'm lacking energy and time to start the whole thing from the beginning (but I should, I know). Once more, thanks alot for your help! I love mutt, it's great, I'd love to master it totally (yes I also have strange dreams...:-)), but unfortunately I'm far from it :-( s.
