I want to create some new views for my team.
We handle e-mails in shifts (most of the time there are 6 of them) so in each hour it looks like the below (we use 24 hour clock from 14:00 to 21:59 so 2PM to 10PM):
- 6/1 - 14:00 - 14:09 // 15:00 - 15:09 // 16:00 - 16:09 // .................... // 21:00 - 21:09
- 6/2 - 14:10 - 14:19 // 15:10 - 15:19 // 16:10 - 16:19 // .................... // 21:10 - 21:19
- 6/3 - 14:20 - 14:29 // 15:20 - 15:29 // 16:20 - 16:29 // .................... // 21:20 - 21:29
- 6/4 - 14:30 - 14:39 // 15:30 - 15:39 // 16:30 - 16:39 // .................... // 21:30 - 21:39
- 6/5 - 14:40 - 14:49 // 15:40 - 15:49 // 16:40 - 16:49 // .................... // 21:40 - 21:49
- 6/6 - 14:50 - 14:59 // 15:50 - 15:59 // 16:50 - 16:59 // .................... // 21:50 - 21:59
I would like to create the view based on that.
So first mail shift (6/1) can only see what is coming in between 00-09 in every hour, second (6/2) can only see what is com in in between 10-19...and so on...
I did it with the advanced view settings, but I have 2 issues:
1. It is using the date of the creation so is it possible to put in a function which takes the actual date, like CURDATE() ?
2. Somehow a few e-mails are missing, so it works almost fine, takes almost everything but it seems that a few e-mails are missing from the new view and they are there in the original view. I checked and no other filters are turned on, so this must be something else. The filter is based on the 'Received' timing and I'm not sure if anything else interacts.For example in the 4th shift (6/4) there were like 10 e-mails missing during my test day at minute :30, but there were some at 15:30, 16:30 and 18:30 which were in the filtered view. I first thought it's the <= and >= settings, but it shows that it is not. I have no idea why it skips e-mails...
The SQL code is the below for the first shift (6/1):
(("urn:schemas:httpmail:datereceived" >= '2014.04.07
14:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 14:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 15:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 15:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 16:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 16:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 17:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 17:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 18:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 18:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 19:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 19:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 20:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 20:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 21:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 21:09'))
Please if you have any idea what could be wrong, maybe I should add something else to the filter please get back to me. This way it is useless and I really want us to use view because we have about 50 emails per shift in every hours.
Thank you!