Question

I have the FiltaQuilla add-on for Thunderbird (http://mesquilla.com/extensions/filtaquilla/) because I wanted to give myself the ability to move messages that match a date range AND the subject line of the message can match any words I specify. Matches are found using a JavaScript Regular Expression. The idea is that if any of the five phrases below are found, the email would then be placed in another folder.

Here is the filter I'm trying to set up:

/CST 205 | CST205 | CST205-01 | CST 205 Preparation | CST205-01_SP14/ig

It has moved a bunch of emails, but is leaving emails that it shouldn't. Below are the subject lines of emails this script shouldn't be leaving behind:

  • Re: CST205-01_SP14 Keep it up!
  • Re: Hiring for CST 205

Can you help adjust my script to avoid leaving those messages behind?

Was it helpful?

Solution 2

Is there anything wrong with:

/CST\s*?205/ig

This would capture anything with "CST 205" in it with an optional number of spaces between the letters and numbers.

OTHER TIPS

Make it

/CST 205|CST205|CST205-01|CST 205 Preparation|CST205-01_SP14/ig

and it will no longer require blanks before/after the strings. Also, The first two expressions should be enough, the rest matches subsets of them anyway. And you could shorten them to

/CST ?205/ig
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top