This is just a test program to make search queries on an imap server:
Install Rust: https://rustup.rs/
Then:
cargo build
$ ./target/debug/imap-search-test imap.example.org username INBOX 'SUBJECT "hello"'
Password:
Found: {}
// an empty list means nothing is found