-----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 a...@abc.edu \
>        "push <edit-cc>,o...@abc.eu<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 a...@abc.edu' \
         "push '<edit-cc>,o...@abc.edu<enter>'"

If that doesn't work, try this:

     send2-hook '~t a...@abc.edu !~C o...@abc.edu' \
         "push '<edit-cc>,o...@abc.edu<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-----

Reply via email to