How to search emails by header fields such as Subject, Sender, Receipt, against regex? The emails are fetched and read with Thunderbird. But the searching doesn't need to occur through Thunderbird interface.
1) I need a solution to IMAP email account.
2) I don't want to install other email clients such as Mutt.
3) I am open to solutions that needs programming in Bash, Perl, Python, and ideally not others.
4) Ideally, I want to find some addon for doing multi-field and regex based searching.
5) After finding the emails, I typically want to visually determine a few interesting ones and read their content.
[EDIT] Added 1). [EDIT] Added 5).