[PATCH] dmime: Reimplement the reference list parser