-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Toby Coleridge <[EMAIL PROTECTED]> wrote:
> If I setup two send hooks as follows:
> send-hook . "my_hdr From: [EMAIL PROTECTED] ;"
> send-hook blah "my_hdr From: [EMAIL PROTECTED] ;"
>
> am i right in thinking that the second send hook will be activated
> on any To: or Cc: (or Bcc?) that contains blah in the address, does
> this behave in a reg exp manner?
Yes, you are correct. This is a snippet from sample mutt.rc:
# send-hook [!]<pattern> <command>
# <command> is executed when sending mail to an address matching
# <pattern>
So, if the mail you are sending contains "blah" in it's address,
your From-header is changed to "[EMAIL PROTECTED]". By the way, why there's
'<space><semi-colon><space>' (" ; ") after the my_hdr command?
> will it match all of the following :
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
AFAIK, this is how it goes.
HTH!
- --
Jussi Ekholm <[EMAIL PROTECTED]> | <http://erppimaa.ihku.org/> | <0x1410081E>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE9pebaAtEARxQQCB4RAp7cAJ94az3fHy3JffRXp++3dPzznKyllwCgufM3
NlI1ezOpqx1Fj4WYMPra2R4=
=Je4F
-----END PGP SIGNATURE-----