I would like to replicate GMail's "Filter Messages Like These" feature. Basically, I'm hoping to bind a key in mutt, such as *, and that can "Limit" displayed messages to those sent by the same sender (or senders if prefixed with ;)
macro index * "<enter-command>set sender=display-address<enter><limit>$sender<enter>" "Filter Messages Like"
I am trying the macro approach above, but struggling to read the sender address into a variable in mutt. Is macro the right way to go here? and what's the correct way to read message headers into variables?