Hello Mr. Sam,

I am using sqwebmail filter function and it is working great when
filtering based on plain text key words.
However whenever I enter the a regular expression characters such as .*,
such as:

[(o)Body] [contains]  hello.*

I see in the MAILDIR/mailfilter file the line: if ((/hello\.\*/:b))
which should have been if ((/hello.*/:b))

What do I need to do to ensure that regex are not being escaped ?

Many thanks.

Lu


In case it heps here is the content of the mailfilter generated by
sqwebmail

#MFMAILDROP=2
#
# DO NOT EDIT THIS FILE.  This is an automatically generated filter.

FROM='[EMAIL PROTECTED]'
import SENDER
if ($SENDER eq "")
{
 SENDER=$FROM
}

##Op:contains
##Header:
##Value:hello.*
##Folder:[EMAIL PROTECTED]
##From:
##PlainString
##Body
##Name:filter1


if ((/hello\.\*/:b))
{
    to "| $SENDMAIL -f " '"$SENDER"' " [EMAIL PROTECTED]"
}

to "/usr/local/vpopmail/domains/demo.hostation.com/test/Maildir/."


Reply via email to