Use gmime's own reference-parsing code.