[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mail regex
From: |
Alain Magloire |
Subject: |
Re: mail regex |
Date: |
Sat, 11 Aug 2001 22:07:04 -0400 (EDT) |
Bonjour
...
> Why? One can always escape metacharacters, e.g:
>
> from /a \* subject/
>
>
> I believe it is a very useful extension. We can provide an environment
> variable controlling this feature, so that those who don't need it
> might simply place
>
> set noregex
>
> in their mail.rc file to turn the feature off.
>
> I'd vote that we add a check for regexp to configure.in with a fallback
> rx.c or regex.c in lib/.
Done.
> Actually, I am thinking about a more general approach. Sometimes it
> is necessary to select letters on the contents of an arbitrary
> header. So, I'd extend the search syntax to something like
>
> Received:/.*mirddin.*/
>
> meaning select all the letters with the given regexp in Received: header.
> If the "header:" portion is omitted, it defaults to Subject:.
> Any comments?
Once, you have a formal semantics in msgset.y, I'll be happy to implement.
--
alain