How do the filters work?

krakastan

Valued Member
Hi, a few questions on how the filters work if I may :)

1) Is it possible to use wildcards (regex would be really nice)

2) Do the filters process in top to bottom order

3) Is every filter processed, or does it stop when the first match is met

4) Is it possible to reorder the filters

5) When using "contains", will it match "@domain.com", or will it only match full addresses

6) What does "To" actually match (ie does it include CC etc)

thanks
 

SCRYPTmail

Email Service Provider
1. Regex not used - we try not to go too deep into each feature without request from our users
2) Correct, but I just quick checked its sorting not in order of applying. I need to fix it
3) Every filter rule is applied to incoming messages, but if top rule send email into other folder, is effectively avoiding other rules after
4)Not at the moment
5) You can use rule contains to match any email containing specific domain, i.e working as wildcard
6)To works for To and CC fields
 
Last edited:

SCRYPTmail

Email Service Provider
Right now there is no particular order, it is something we can improve as times goes. Initially I designed expecting only one governing rule per message.
 

krakastan

Valued Member
Is there some sort of default order that the system uses such as the order they are created for example, or is the order different each time?

Moving forward I think being able to manually order them would be great, but in the meantime understanding how they work is important to me :)

thanks
 

SCRYPTmail

Email Service Provider
Is there some sort of default order that the system uses such as the order they are created for example, or is the order different each time?

Moving forward I think being able to manually order them would be great, but in the meantime understanding how they work is important to me :)

thanks
Right now its ordered by index, which one is a hash of filter object itself, meaning it will change if you modify data. Do you have any sort criteria in mind?
 

krakastan

Valued Member
Ah, thanks for that. explains why it was difficult to identify :)

Do you have any sort criteria in mind?

That's a tricky one.....my initial thoughts in order of preference would be

1) Index number sort (ie add a [numeric?] index field to each filter on which to sort)
2) Manual sort - via the gui interface
3) Modified DateTime
4) Created Datetime (all 4 of these allow manual control of the order)

5) If it processes EVERY rule EVERY time,

subject filters sorted alphabetically then
From filters (Less specific first ie @domain.com before one@domain.com before two.one@domain.com all sorted alphabetically) then
Recipent filters (Less specific first ie @domain.com before one@domain.com before two.one@domain.com all sorted alphabetically)
I think at least have a known & constant order would be a good start.

Hope this helps - your efforts are greatly appreciated :)
 

SCRYPTmail

Email Service Provider
I hear you. I think I will create index order first. And some day will implement more sophisticated control
 
Top