Bruce J.A. Nourish <[EMAIL PROTECTED]> wrote on Fri, 06 Oct 2000:
> > send-hook '~C [EMAIL PROTECTED]' "set signature=~/.sigs/offical.sig"
> 
> I was under the impression that send-hooks just needed an address, not a
> pattern. This is a sample of what i have
> 
> send-hook '.'                         source ~/.mutt/rcpt/default.rc
> send-hook '[EMAIL PROTECTED]'    source ~/.mutt/rcpt/dad.rc
> 
> These work... so who is right here?

Both.

Basically, Mutt uses a default operator, if you type in a text string
which isn't a valid pattern matching expression.  For send-hooks it's
$default_hook, for searching messages with / in the index it's
$simple_search.

So doing

  send-hook '[EMAIL PROTECTED]' ...

is equal to

  send-hook "~f [EMAIL PROTECTED] !~P | (~P ~C [EMAIL PROTECTED])" ...

if you haven't touched the default value of the $default_hook setting.


See the manual's entry on the $default_hook setting for more info (well,
not much more, but at least for the official documentation).


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Gather 'round like cattle and ye shall be herd.

Reply via email to