Either allow passing multiple filters or expand the fields on emails.Filter to filter on specific fields (to, from, subject, body, etc). I think still important to leave a general "Text" field to allow matching any field. The solution may also implement a combination of passing multiple filters and using more fields on emails.Filter to get as much specificity as possible. If using multiple filters, perhaps there would need to be an argument to specify if filters should be treated with AND or OR logic.
Either allow passing multiple filters or expand the fields on
emails.Filterto filter on specific fields (to, from, subject, body, etc). I think still important to leave a general "Text" field to allow matching any field. The solution may also implement a combination of passing multiple filters and using more fields onemails.Filterto get as much specificity as possible. If using multiple filters, perhaps there would need to be an argument to specify if filters should be treated withANDorORlogic.