WebFaction
Community site: login faq

Hi, I've added filters for the following sites but just got one slip through, is t his correct syntax?

:0:
* ^From:.*@linksvalidator.com
* ^From:.*@trustresponse.com
* ^From:.*@targetlyapp.com
* ^From:.*@ammedia.net
* ^From:.*@bigasitgets.com
.<folder>/

asked 15 Jun '15, 14:20

rambos
133
accept rate: 0%


No, that's not the correct syntax - the way you've written it, your filter will fire only if every condition is true.

To match multiple conditions, you can either combine them into a single regular expression, like this:

:0:
* ^From:.*@((linksvalidator\.com)|(trustresponse\.com)|(targetlyapp\.com)|(ammedia\.net)|(bigasitgets\.com))
.<folder>/

Or, use separate rules for each condition, like this:

:0:
* ^From:.*@linksvalidator\.com
.<folder>/

:0:
* ^From:.*@trustresponse\.com
.<folder>/

:0:
* ^From:.*@targetlyapp\.com
.<folder>/

:0:
* ^From:.*@ammedia\.net
.<folder>/

:0:
* ^From:.*@bigasitgets\.com
.<folder>/

See the following for more information: proctip2 - how to "or" recipe conditions

Hope that helps!

permanent link

answered 15 Jun '15, 17:56

seanf
12.2k42136
accept rate: 37%

edited 15 Jun '15, 17:57

perfect, thanks

(19 Jun '15, 04:31) rambos
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×33
×3
×1

question asked: 15 Jun '15, 14:20

question was seen: 2,342 times

last updated: 19 Jun '15, 04:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM