Page 1 of 1

Filter problem on CC list

Posted: Tue Aug 17, 2010 12:20 pm
by dav4is
Setting the NOT TO ME filter,
Filter type: SPAM
Match ALL rules
Rules like: TO doesn't contain "DAV4IS@
Rules like: CC doesn't contain "DAV4IS@"

Does not detect address beyond first position in CC list. List format:
Cc: "Barbara Chase" <[email protected]>,
"Scott Chase" <[email protected]>, "Jim Mara" <[email protected]>,
"Dave Guernsey" <[email protected]>, ...

I.e. Barbara Chase detected, but not Scott Chase.

[[Wish for a "TO or CC" rule! :( ]]

Re: Filter problem on CC list

Posted: Tue Aug 17, 2010 12:31 pm
by Sidewinder
Did you copy and paste the expression into the rule from an actual message header as seen on the Source tab?

Re: Filter problem on CC list

Posted: Tue Aug 17, 2010 12:34 pm
by dav4is
Yes, I did. I have tried all variations of strings in CC list, but only strings in the first element of the CC list are found.

Furthermore, the CC list fragment I posted here was copied from an actual message, with part of the addresses XXX'ed out.

Re: Filter problem on CC list

Posted: Tue Aug 17, 2010 12:43 pm
by Sidewinder
dav4is wrote:Yes, I did. I have tried all variations of strings in CC list, but only strings in the first element of the CC list are found.

Furthermore, the CC list fragment I posted here was copied from an actual message, with part of the addresses XXX'ed out.
OK then have you tried a Regex attempt. To use it you must put a \ (regex delimiter) in front of the . in the domain name.

Re: Filter problem on CC list

Posted: Tue Aug 17, 2010 1:00 pm
by dav4is
Are you serious? Why would the user need to use regular expressions here???
Substrings of the first element are detected w/o RegExp, e.g. "BARBARA" as plain text is found (w/o quotes) -- but "SCOTT" is not.

Re: Filter problem on CC list

Posted: Tue Aug 17, 2010 1:01 pm
by stan_qaz
Possibly this bug, where the quote confuses MW? http://forum.firetrust.com/viewtopic.ph ... 920#p35011

The regex doesn't seem to deal with teh quotes but it might be able to get past the first element in the line. If it doesn't work to get to the second element you might look at switching to a Header filter and trying that.

Re: Filter problem on CC list

Posted: Tue Aug 17, 2010 1:11 pm
by dav4is
stan_qaz wrote:Possibly this bug, where the quote confuses MW? http://forum.firetrust.com/viewtopic.ph ... 920#p35011

The regex doesn't seem to deal with teh quotes but it might be able to get past the first element in the line. If it doesn't work to get to the second element you might look at switching to a Header filter and trying that.
Perhaps not. Note that I am not using any quotes in the filter. The quotes are in the email CC list.
May be related bug, but not what stan_qaz is saying is his problem.

Switching to scan the whole header finds any string in the CC list -- but would need to be a RegExp to do the job properly.

No, sorry. This is clearly a bug.