Hi Patrick, Thanks replying to me.
Le 17-03-2010, à 08:29:40 -0400, Patrick Shanahan (ptilopt...@gmail.com) a écrit : > * steve <dl...@bluewin.ch> [03-17-10 04:53]: > > I receive an email with: > > > > From: a...@example.com > > To: m...@foo.bar > > > > (I don't have any special settings for a...@example.com) > > > > I hit 'r' and I get: > > > > From: defa...@email.bar > > To: a...@example.com > > > > > > but I would like to have: > > > > From: m...@foo.bar > > To: a...@example.com > > > > > > 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. > > 19. Change Settings Based Upon Message Recipients > > Usage: > > reply-hook [!]pattern command > > send-hook [!]pattern command > > send2-hook [!]pattern command > > > > These commands can be used to execute arbitrary configuration commands > > based upon recipients of the message. pattern is used to match the > > message, see Message Matching in Hooks for details. command is executed > > when pattern matches. > > > > reply-hook is matched against the message you are replying_to, instead > > of the message you are sending. send-hook is matched against all > > messages, both new and replies. > I have already read that, I suppose I didn't express myself very well, please forgive me. My first idea was something like : reply-hook '~t ^...@foo.bar$' 'set from="m...@foo.bar"' 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 ^...@foo.bar$' 'my_hdr From: m...@foo.bar' same thing. I'm missing something but I don't know what. Help would be highly appreciated. Thanks, s.