hello synace,
Thanks for the efforts. However, what is wrong with feeding qmhandle a regular expression that does just what you wanted?
Eg: ./qmHandle -H'^Received: .*(192\.168\.1\.1)'.
2009-11-06 06:01:55 UTC in qmHandle - a tool for the qmail queue