Steven Lynn wrote:
I like it. I am probably going to put it on my backup server and try it
as a alternative install... Just to try it out. It would save me a lot
of trouble with running Evolution and Filters. I am no dev but i think
it looks good.
One idea, what about using an enum on the filter_field column instead of
a varchar. This might help to have to put 'subject', 'recipent',
'sender', etc. into the column... Just my thoughts...
Why do you heed to put some values into one column? You can use some
filtering records for one user instead of it.
My filtering algorithm:
1) Read all filtering rules for current user with "SELECT filter_field,
filter_value, mailbox FROM dbmail_filters WHERE user_id = '%llu' ORDER
BY filter_id"
2) For every record read all mail headers and compare it with current
record in dbmail_filters.
3) Apply destionation mailbox on founding first matching
--
Regards,
Eugene Prokopiev