Jump to content
Sign in to follow this  
FrankC

Getting rule filter 'Regular Expression' to work

Recommended Posts

Hi,

Can anyone help with my filtering problem :

I am trying to add a filter rule to help clear out my 'Held Mail' so I can check it more easily for false positives. Most of the rules I have created seem to work OK, but I can't get ones based on Regular Expressions to work.

To try it out, I created a simple test rule with the following entries :

Body

Regular Expression

casino

and set it to move all matching emails to a test folder.

However, when I run this rule (and of course all the other rules) on my Held Mail, ALL of the Held Mails are moved to my test folder - even ones without the word casino in the body.

I am obviously doing something wrong or misunderstanding the use of regular expressions.

(Obviously, I want to use slightly more complicated expressions, but have started with something simple. I did try some more complicated examples I found elsewhere e.g. [v(\\\/)][[:punct:][:space:]]*[iìíîï¡1\|l\!]{1,3}[[:punct:][:space:]]*[aàáâåãäæ\[at]]{1,3}[[:punct:][:space:]]*[gqp9]{1,3}[[:punct:][:space:]]*r

with the same result - all emails moved).

Any ideas on what I'm doing wrong ?

Thanks,

Frank

Share this post


Link to post
Share on other sites
positives. Most of the rules I have created seem to work OK, but I can't get ones based on Regular Expressions to work.

To try it out, I created a simple test rule with the following entries :

Body

Regular Expression

casino

Where is the availability of regular expressions in webmail/horde documented ?

Mind you under the previous webmail installed here I was unable to get much simpler things to work

== quote

tried both 'X-spam-Level' contains '***' and 'X-spam-Status' contains 'hits=3.' but nothing happened, even though the held folder had an email with

X-spam-Level: ***

X-spam-Status: hits=3.0 tests=HTML_MESSAGE,URIBL_JP_SURBL version=3.1.0

==unquote

Share this post


Link to post
Share on other sites
Where is the availability of regular expressions in webmail/horde documented ?

I dont know - all I could find was the very limited help which appears on the rule filter page.

If I could find more comprehensive help, I might be able to work out the solution myself.

As I couldnt find anything more comprehensive, I tried posting here.

Share this post


Link to post
Share on other sites

Links to the Horde/IMP tool are found in the SpamCop FAQ 'here' FAQ, Wiki, users, Admins, etc.

However, I found them to be lacking in a lot of detail also. Then there's the separation of what Admins allow users to do / have access to ....

Share this post


Link to post
Share on other sites

Links to the Horde/IMP tool are found in the SpamCop FAQ{/b] 'here' FAQ, Wiki, users, Admins, etc.

However, I found them to be lacking in a lot of detail also. Then there's the separation of what Admins allow users to do / have access to ....

Wazoo - thanks for the reply.

I had already looked in the SpamCop FAQ - but it's not much help - hence my question here.

(also following many of the links takes me on a circular journey, or to missing pages or to out-of-date information or to pages in a completely different format which may or may not be relevant).

What can I do next - I'm at a bit of a loss as to how to proceed. ?

Frank.

Share this post


Link to post
Share on other sites
I had already looked in the SpamCop FAQ - but it's not much help - hence my question here.

(also following many of the links takes me on a circular journey, or to missing pages or to out-of-date information or to pages in a completely different format which may or may not be relevant).

circular journey? - explain please

missing pages? - identify please

different format? - sure, the links go to where the data is, to include;

  • other posts within this Forum
  • Orginal FAQ
  • Wiki
  • other web-sites

Share this post


Link to post
Share on other sites

circular journey? - explain please

missing pages? - identify please

different format? - sure, the links go to where the data is, to include;

  • other posts within this Forum
  • Orginal FAQ
  • Wiki
  • other web-sites

Circular Journey :

Following lots of links that take me to loads of places which don't help (with my particular problem) and eventually ending up at one suggesting I use the spamcop.net forum. Which is where I started.

Missing Pages :

I'm not prepared to descend into the maze of links again, I probably couldn't replicate my journeys anyway - but I did come across a few broken links. In future I will record them. (I'm not counting the one in your previous reply to me - I was able to deduce what you meant).

Different Format :

Well - you've described it well yourself. It makes finding a specific piece of information a bit of a nightmare. I've tried to persevere but no luck so far. However, I have followed turetzsr's suggestion and sent an email describing my problem via the email contact form.

Overall though, if you did happen to know anywhere else I could find my answer, I would be even more grateful. Thanks for responding anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×