Group: netwin.surgemail
Subject: Filter based on regular expression in from header
Date: Tue, 06 Dec 2016 15:18:15 -0600

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?