Daniel,
Your improved $parent pattern match looks good. You've obviously put quite
a bit of thought into it.
I've incorporated it into the latest version of eximstats (1.54) which is
available from
http://www.computurn.com/exim and will be in the next
exim distribution (4.67).
Steve Campbell