While debugging a Gentoo/Mailman problem, I found this very useful python wrapper for mailq provided by Dan Mick. It allows to selectively display message IDs of queued messages for a certain recipient. Thanks, Dan!
[Mailman-Developers] Postfix mailq formatter/dumper/searcher: mq