Search the open folder with the search box of the list: the list shows what it found.
Examples
When I search the mail for "report"
When we search the mail for "Lunch"
And I search the mail for "test plan"
When I search the mail for "Webship"
When I search the mail for "nothing like this"
Pattern
When(/^(?:I|we) search the mail for "([^"]*)"$/, …)
Part of @webship-js/roundcube-steps (github.com/webship/roundcube-steps), a step pack for Webship-js 2.0.x.