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

Re: matching mails sent to the local system



On date Thursday 2006-12-14 15:17:45 +0100, Rado S muttered:
> =- Stefano Sabatini wrote on Thu 14.Dec'06 at 13:39:30 +0100 -=
> 
> > I'm trying to match iwth a send-hook all the mail sent to an address
> > of the form:
> > \w+
> 
> mutt has no pcre!
> 
> > without an exmplicit domain (e.g. as in alice@xxxxxxxxxxxxxx).
> 
> I guess you want
> 
>       ~t '^[^@]+$'
> 
> read: anything without @ in it.

Thank you Rado S, it works. 

But then it means I'm misunderstanding this:

http://www.mutt.org/doc/manual/manual-4.html

or maybe '\w' is supposed to match the '@' char too... oops, now I see
that the manual says:

Note: If you compile Mutt with the GNU rx package, the following
operators may also be used in regular expressions:

...

Checked that:
$ mutt -v | grep -i rx
$

No output, it's that ;-).

Cheers
-- 
Stefano Sabatini
Linux user number 337176 (see http://li.count.org)