As a user that want to make search
I can write a request in a natural language
In order to find emails.
Scenario
Given I have the list of email and today it's 2016/03/18
SUBJECT | DATE | NAME | STATE |
KDE : Dynamics Project | 2016/02/16 | John | unread |
KDE : Dynamics PAQL KMail | 2016/02/17 | Franck | unread |
Qt : Assasin project | 2016/03/15 | John | unread |
When I write "Unread emails from John from the last two weeks" in search bar
Then the natural language is parsed as "Receiver is John" AND "DATE>2016/03/04" AND "state=unread" and the result will be :
SUBJECT | DATE | NAME | STATE |
Qt : Assasin project | 2016/03/15 | John | unread |