Re: catch today's PDF pillz spam

2018-02-19 Thread David B Funk

On Mon, 19 Feb 2018, Axb wrote:


oooppps - missing a backslash

mimeheader  AXB_CTYPE_SPELLHERO  Content-Type =~ /\bapplictaion\/pdf\b/

On 02/19/2018 05:24 PM, Axb wrote:


catch today's PDF pillz spam

mimeheader  AXB_CTYPE_SPELLHERO    Content-Type =~ /bapplictaion\/pdf\b/

the typo is the trait ;)

enjoy while it lasts


FYI:
If you use an explicit pattern-match delimeter you can avoid the "leaning 
toothpicks" syndrome. (particularly relevant for URIs).


EG:

uri MY_URL_FILTER1 /\bhttp:\/\/this-is\.adomain\.com\/this\/is\/a\/path\b/

uri MY_URL_FILTER2 m!\bhttp://this-is\.adomain\.com/this/is/a/path\b!

Still need to escape those meta-chars (EG: \b) and explicit matches on dots,
but otherwise makes it more readable.

I realise this wouldn't have helped you with your type-o, but it does make it 
easier to see at a glance.



--
Dave Funk  University of Iowa
College of Engineering
319/335-5751   FAX: 319/384-0549   1256 Seamans Center
Sys_admin/Postmaster/cell_adminIowa City, IA 52242-1527
#include 
Better is not better, 'standard' is better. B{

Re: catch today's PDF pillz spam

2018-02-19 Thread Axb

oooppps - missing a backslash

mimeheader  AXB_CTYPE_SPELLHERO  Content-Type =~ /\bapplictaion\/pdf\b/

On 02/19/2018 05:24 PM, Axb wrote:


catch today's PDF pillz spam

mimeheader  AXB_CTYPE_SPELLHERO    Content-Type =~ /bapplictaion\/pdf\b/

the typo is the trait ;)

enjoy while it lasts





catch today's PDF pillz spam

2018-02-19 Thread Axb


catch today's PDF pillz spam

mimeheader  AXB_CTYPE_SPELLHERO Content-Type =~ /bapplictaion\/pdf\b/

the typo is the trait ;)

enjoy while it lasts