Closed Bug 244752 Opened 20 years ago Closed 20 years ago

Use of regular expressions in message filters

Categories

(MailNews Core :: Filters, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 66423

People

(Reporter: gschrad, Assigned: sspitzer)

Details

User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6b) Gecko/20040113 Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6b) Gecko/20040113 In the message filter match criteria ("contains", "begins with", etc) an option to treat the filter string as an extended regular expression would be helpful. Criteria such as "contains regex" and "doesn't contain regex" would be good. What I would like to be able to do is to filter on things like the top level fragment of IP addresses. For instance: "{128|236}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}" The closest that I can get with the current filters are patterns like "contains" "128." but filter terms like this can match much more than they are intended to. Reproducible: Always Steps to Reproduce: N/A Actual Results: N/A Expected Results: N/A
This duplicate was particularly easy to locate. Please make more of an effort to find bugs before opening new ones. *** This bug has been marked as a duplicate of 66423 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.