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

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


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
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Reply via email to