Group: netwin.surgemail
From: surgemail-support <>
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.


On 7/12/2016 10:18 a.m., 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 ""
> end if
> it doesnt like the regular expression for the end of a line since it thinks its a variable. What are my options?