Are there windcards for filters?
Here is my problem. I have a domain, call it domain.com. Mailwasher does a good job at weeding out the spam to me, me@domain.com, but I get a ton of stuff for you@domain.com, frank@domain.com, john@domain.com, etc... I'd like to tell mailwasher to delete everything that has 'domain.com' in the To: field, but does not contain me@domain.com, us@domain.com, and them.domain.com. I don't want to tell it to delete everything that doesn't have those three email addresses because sometimes i'm in a blind cc or something, but I want it to look and see if it's addressed to anything at domain.com and if it's not me, us, or them, then delete it.
I tried
"all must be true"
if "To:" contains *@domain.com
and
if "To:" does not contain me@domain.com
and
if "To:" does not contain us@domain.com
and
if "To:" does not contain them@domain.com
...then delete
that did not work.
any suggestions?
Filters and wildcards
- stan_qaz
- Omniscient Kiwi
- Location: Gilbert, Arizona
Post
Re: Filters and wildcards
You need to use regular expressions, take a look at this topic for a starter, the to-me and not-to-me filters might help:
http://forum.firetrust.com/viewtopic.php?f=50&t=5575
http://forum.firetrust.com/viewtopic.php?f=50&t=5575
I am not a Firetrust employee just a MW user.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.
- anniebrion
- βeta Tester
- Contact:
- Location: Milkyway, Sol, Earth, UK, London
Post
Re: Filters and wildcards
"all must be true"
if "To:" contains @domain.com
and
if "To:" does not contain me@domain.com
and
if "To:" does not contain us@domain.com
and
if "To:" does not contain them@domain.com
...then delete
You just needed to remove the * from the first rule
But as Stan says, regex is extremely powerful and well worth learning
if "To:" contains @domain.com
and
if "To:" does not contain me@domain.com
and
if "To:" does not contain us@domain.com
and
if "To:" does not contain them@domain.com
...then delete
You just needed to remove the * from the first rule
But as Stan says, regex is extremely powerful and well worth learning
Annie.......... PC details
Mailwasher Pro βeta [v 7.12.39]
Mailwasher Pro βeta [v 7.12.39]
- deaded
- Rattled Rabbit
Post
Re: Filters and wildcards
Thanks for the replies. I will read that thread, check out regex, and in the mean time remove the star.
So there are no wildcards for the regular rules in the filter?
So there are no wildcards for the regular rules in the filter?
- anniebrion
- βeta Tester
- Contact:
- Location: Milkyway, Sol, Earth, UK, London
Post
Re: Filters and wildcards
Contains is an implied wildcard ie @domain is the same as *@domain*
regex is the way to go:
(^|<|\x20) = Start of line or < or space, to find the start of the email address.
.+ = 1 or more characters.
\. = .
\b = Word boundry, find the end of the address.
regex is the way to go:
Code: Select all
(^|<|\x20).+@domain\.com\b
.+ = 1 or more characters.
\. = .
\b = Word boundry, find the end of the address.
Annie.......... PC details
Mailwasher Pro βeta [v 7.12.39]
Mailwasher Pro βeta [v 7.12.39]
- stan_qaz
- Omniscient Kiwi
- Location: Gilbert, Arizona
Post
Re: Filters and wildcards
Right, in plain text mode every letter is just a letter, to get wildcards you switch to regex mode. Wildcards in regex are as simple as . and * but have many other options and much better control.deaded wrote:So there are no wildcards for the regular rules in the filter?
I am not a Firetrust employee just a MW user.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.
--
First rule of computer consulting: Sell a customer a Linux computer and you'll eat for a day,
sell a customer a Windows computer and you'll eat for a lifetime.