From the command line how would one search for all emails of a user with one of the fields ("From:", "To", "Subject") matching a particular string ?
Once those messages are found, how to delete them ?
It is sometimes inconvenient to do this from the webmail client (the search works fine but then one is forced to delete the messages in batches if there are too many messages to fit on one page)

Thank you!.