Here is what I'd like to propose then:
The current "search dialog" (the one which supports Paste) has a two-state toggle button, for choosing search on "text" vs. "headers".
I can extend this to add a third state, "sender", with appropriate visual feedback (right now the icon changes, and there are help prompts).
So to search on "sender", one would 1) bring up search 2) enter a query 3) tap the button twice to take it to "search by sender" state 4) press submit.
And then separately from that we can discuss what should be done with the current "search all headers with a swipe command" - should there be a new one, or should it be left as is, considering the user can refine search from a search results view.
Let's not conflate these two parts but keep them in mind.
The proposal is actually for something very very similar to Samsung's search UI, but more compact, and it also leaves room for the list of suggestions (previous searches).
The enhanced "search dialog" proposal looks good (actually delayed responding to give it a reasonable think)! It will address my immediate interests and hopefully those of the thread OP and others with a similar need. Although I don't own a Samsung android device I like the idea of mimicking an existing UI design for the reasons given.
Yes - save swipe discussion for another day as some back-and-forth will likely ensue as ideas are tossed about.
I do have a question that is unrelated to the proposal at hand but may impact the effectiveness of certain 'From:' searches. Which header field is used? Here's why I ask.
I have several conversations with (nearly) identical subject lines but different originators. The originator name, email and image clearly show in each message. Replies are appropriately addressed to the original sender. Of course I like it this way (mimics Gmail) but it's not suppose to happen with sender+subject grouping logic. I believe the messages are grouped because they originally went to a secondary account that auto-forwards to my primary account. Depending how the search logic is coded one may not be able find messages from the original senders as Aqua may think they both originated from an intermediary secondary account.
I am happy to share the full messages and/or headers with Kostya if helpful.
Note the above scenario is NOT a problem for me as my primary use case is to identify messages that I sent - not those that others sent to me. Others may have a different view.