Hi Patrick, Le 17-03-2010, à 11:21:59 -0400, Patrick Shanahan ([email protected]) a écrit :
> * steve <[email protected]> [03-17-10 11:00]: > > Le 17-03-2010, à 09:51:24 -0400, Patrick Shanahan ([email protected]) a > > écrit : > > > 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. > > I believe we do have a communication problem :^). In your reply, the > "From" address needs to be *your* address, not who the "message" was > *from*. That prompted by earlier question about to/from *you*. > > OR, I don't understand at all. (quite possible :^) No you didn't, it's me who was a bit tired yesterday and wasn't clear enough, sorry. To sum up, here is what I want to do: you send me a private message to the address I use for this list and I want to answer with this same address. I hit 'r' and actualy the From header is not set to [email protected] but to my default address. > > > 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. > > reply-hook '^...@foo\.bar$' 'set from="<[email protected]>" So here, if you send me a mail to [email protected], I would reply with [email protected], that's correct? If so, it's not what I want. I want to reply with [email protected]. What I don't understant is that since I have, say 5 different addresses, me1, me2, ..., m25, I should write five different lines like the above one? It seems awkward to me. Am I totally confused? > I would still use "send-hook". I hear that, I'll follow your advice (if I can). > > > > > > 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. > > They are not. They are two different situations, one using "set from" > and the other using "my_hdr". I would use one or the other, not both. > They were provided as examples. Ah ok... but then what's the difference between them? s.
