send-hook for replying to mailing lists

2007-07-13 Thread Sven Bretfeld
Hi Mutt users

For mailing list I use an email address different from my private
mail. To automatically use the correct from-header I inserted the
following send-hook to my .muttrc:

send-hook . "my_hdr From: [EMAIL PROTECTED]" # private mail
send-hook [EMAIL PROTECTED] 'my_hdr From: Sven Bretfeld
  <[EMAIL PROTECTED]>'

I works will when I compose an original posting. But fails most of the
time when I reply using group reply. When it works Mutt asks me if I
want to reply to the mailing list, puts the list's address to the
To-header and creater the correct from-header.

When it fails, Mutt doesn't even ask me if I want to reply to the
list, but inserts the personal address of the original posting in the
To-header, the list's address in the CC, and my private Email address
in the the From-header.

What have I done wrong?

Thank you very much for help.

Sven


Re: send-hook for replying to mailing lists

2007-07-13 Thread Jerry Walker
Hi Sven,

On Fri 13 Jul 2007 22:12, Sven Bretfeld wrote:
> send-hook . "my_hdr From: [EMAIL PROTECTED]" # private mail
> send-hook [EMAIL PROTECTED] 'my_hdr From: Sven Bretfeld
> <[EMAIL PROTECTED]>'

try send-hook "~l" "my_hdr From: [EMAIL PROTECTED]"

That should match any mailing list you've told Mutt about using
"subscribe" or "lists".

Cheers,

Jerry.


Re: send-hook for replying to mailing lists

2007-07-13 Thread Sven Bretfeld
Hello Jerry

On Fri, Jul 13, 2007 at 09:27:59PM +0100, Jerry Walker wrote:

> try send-hook "~l" "my_hdr From: [EMAIL PROTECTED]"

That's it. Thank you very much.

Bye,

Sven


Re: send-hook for replying to mailing lists

2007-07-15 Thread Alex Yan
On Fri, Jul 13, 2007 at 10:12:08PM +0200, Sven Bretfeld wrote:
 > When it fails, Mutt doesn't even ask me if I want to reply to the
 > list, but inserts the personal address of the original posting in the
 > To-header, the list's address in the CC, and my private Email address
 > in the the From-header.
 > 

 ~C @mutt.org for send-hook also works for you.

-- 
Alex Yan
2007-07-15