Group: netwin.surgemail
From: surgemail-support <surgemail-support@netwinsite.com>
Subject: [SurgeMail List] Re: Filter based on regular expression in from header
Date: Wed, 7 Dec 2016 21:16:23 +1300

Use isrexp() instead of isin(),  if you wish to use a regular expression.

     ChrisP.



On 7/12/2016 10:18 a.m., surgemail-list@netwinsite.com wrote:
> I have lots of spam coming from .top domains. Can I fliter them in mfilter.rul with something like this
>
> if (isin("from","*.top$")) then
>          call replace("Subject","*","WARNING Possible Spam - %1")
>          redirect "spam@mydomain.com"
> end if
>
>
> it doesnt like the regular expression for the end of a line since it thinks its a variable. What are my options?