I'm not going to claim this is the last version, but I think it addresses the remaining comments. I implemented Austin's of introducing a new type to handle the gmime 2.4/2.6 context incompatibility. jamie.