With a lot of help from idnar, the issue is resolved! There were a few red herrings that ended up cleaning my code a lot, but eventually it ended up boiling down to my MIME generating code simply being busted. Fixed version attached.
Apparently this also highlighted a minor issue in twisted.web with the wrong header being preferred, but I'll leave that up to the expert :) cheers lvh _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python