<<< Date Index >>>     <<< Thread Index >>>

Re: send-hook auto cc not working,



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, April  7 at 02:09 PM, quoth zhang zhengquan:
>I would like to auto cc somebody when I send mail to a recipient

Okay, easy enough.

>I googled and put this in to my send_hooks file
>
>send-hook abc@xxxxxxx \
>        "push <edit-cc>,oas@xxxxxx<enter>"

You aren't being explicit about the pattern matching.

>Did I do something wrong here?

When you do not specify a simple pattern operator, mutt uses the value 
of $default_hook to construct the pattern. I don't know what yours is, 
but... the default value of $default_hook is "~f %s !~P | (~P ~C %s)", 
but who knows what it is on your system. It's better to be explicit:

     send-hook '~t abc@xxxxxxx' \
         "push '<edit-cc>,oas@xxxxxxx<enter>'"

If that doesn't work, try this:

     send2-hook '~t abc@xxxxxxx !~C oas@xxxxxxx' \
         "push '<edit-cc>,oas@xxxxxxx<enter>'"

~Kyle
- -- 
Patriotism means to stand by the country. It does not mean to stand by 
the President.
                                                  -- Theodore Roosevelt
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAknbqScACgkQBkIOoMqOI17PKgCfY8ACV1jBjabHXppnnr8/fIOS
kw4AoPazuZy1yuYZz7qUBeqsexRz5iEU
=76iH
-----END PGP SIGNATURE-----