Rapid spam filtering system https://rspamd.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
745 B

innocuous_hdrs = {
['Message-ID'] = '<20180202155326.Horde.GfEWpxCo_Dip2xJswIpQNgK@example.org>',
['From'] = 'Andrew Lewis <nerf@example.org>',
['To'] = 'nerf@example.org',
['Subject'] = 'innocuous test message',
['User-Agent'] = 'Horde Application Framework 5',
['Content-Type'] = 'text/plain; charset=utf-8; format=flowed; DelSp=Yes',
['MIME-Version'] = '1.0',
['Content-Disposition'] = 'inline',
['Date'] = 'Fri, 02 Feb 2018 15:53:26 +0200',
}
default_hdrs = {
['Subject'] = 'spam message',
}
innocuous_msg = 'Hello Rupert'
gtube = [[lo
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
thx]]
gtube_add_header = string.gsub(gtube, "XJS", "YJS")
gtube_rw_subject = string.gsub(gtube, "XJS", "ZJS")