Hi Patrick,

Le 17-03-2010, à 11:21:59 -0400, Patrick Shanahan (ptilopt...@gmail.com) a 
écrit :

> * steve <dl...@bluewin.ch> [03-17-10 11:00]:
> > Le 17-03-2010, à 09:51:24 -0400, Patrick Shanahan (ptilopt...@gmail.com) a 
> > écrit :
> > > What if you send a *new* message to a...@example.com?
> > 
> > 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 ^...@foo.bar$" 'set from="m...@foo.bar"'
> > > 
> > > 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 m...@foo.bar, set the From header to
> > m...@foo.bar 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 dl...@....ch but to my default address.  
 
> > > reply-hook '^...@foo\.bar$ set from="m...@foo.bar"'
> > 
> > Mutt tells me that there is a syntax error; it doesn't complain anymore
> > with the following line:
> > 
> > reply-hook '^...@foo\.bar$' 'set from="m...@foo.bar"'
> >
> > But anyway, it doesn't do what is expected.
> 
> reply-hook '^...@foo\.bar$' 'set from="<dl...@bluewin.ch>"

So here, if you send me a mail to m...@foo.bar, I would reply with
dl...@bl....ch, that's correct? If so, it's not what I want. I want to
reply with m...@foo.bar. 

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 m...@foo.bar set from="m...@foo.bar"
> > > send-hook m...@foo.bar 'my_hdr From: "m...@foo.bar"'
> > 
> > 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.

Reply via email to