Topic RSS
RKent,
Is there something wrong with this syntax I'm using -> from:/\.dell\.com/
I have this in a rule for like so [Header Regex Match] [matches] [from:/\.dell\.com]
I received mail from Dell@dellhome.usa.dell.com and the action to move the mail to another folder doesn't occur.
If I just do a straight match: [From] [contains] [.dell.com] to move action works as expected.
Please advise…
–
Max
There are several different issues here.
First, the Header Regex search term is matching properties of the internal message database, not headers in the original email. They are not necessarily the same. In this particular case, the internal field is called "sender", not "from". Its value is the best available value for the sender in the program. Although it prefers the "From" header, if that is missing it will use substitutes such as "Reply-to". So this is one of the more complex cases.
Second, in a regular expression the "." is a special character that matches any character, so your expression would match dellRcom as well as dell.com
I tested your desired term, and it worked for me when I used: sender:/.caspia.com/ For your case, I think what you really want though is sender:/\.dell\.com/ to only match the "." and not any character.
Hi RKent,
Thanks for the pointer in the direction of "Sender" versus "From". I'll give that a shot.
By the way, I had included the backslashes in my post preceding the dots in the regular expression, but they were removed when I submitted the post.
I do understand that the special meaning of the dot has to be removed by using the backslashes. It was the "header" and the "internal message database" that was the piece of the puzzle I wasn't taking into account. On that subject, you refer to this fact briefly in the filtaquilla documentation. Is there a complete reference as to the relationship between the message headers and internal message database that I can use for future reference in creating regular expressions with filtaquilla?
Thanks again.
–
Max
I do not know of a reference for this information. I went to the base code to confirm what I told you. Documentation would be a good project I agree. Maybe I should add a few more comments about that in mh own FiltaQuilla documentation.
I guess I had expected the most common usage to be for a custom header, and in that case the header name (added with the customdbheaders preference) does match the database value.
Most Users Ever Online: 18
Currently Online:
8 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 130
Members: 565
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 7
Topics: 231
Posts: 802
Newest Members: Matteo, p.dobrogost, gaute, Mythobeast, terry, Livraria Notre Dame
Moderators: rkent (323)
Administrators: rkent (323)
Log In
Register
Members
Home
Add Reply
Add Topic
Offline

Quote
Recent Comments