Charlie Watts writes:
> From the maildropfilter(5) man page:
>
> "pattern" may not start with a space, because the leading
> slash will be interpreted as a division sign. If you must
> search for something that starts with a space, use some-
> thing like "/[ ] ... /".
>
> However, when editing filters via the SqWebMail filter editor, you can
> specify a pattern with spaces before. This will always be an error.
>
> I'm not sure that I know of a good way to both allow "powerful" regexps
> via the web page interface and keep it simple for end-users.
>
> I do think that the web interface should make an effort to not accept
> input that will -always- be invalid. If a leading space is -always- an
> error, either convert it to [ ] or throw an error.
>
> I believe that other strings, if perhaps non-sensical as regexps, are
> still legal.
>
> Sam, thoughts?
The leading space needs to be escaped. This is doable.
--
Sam