> However the problem appears to be that internally in Python 3 mailbox > class there is an assumption that it's being given 'ascii'.
Do you really _need_ the mailbox class ? From what you've written so far my understanding was that you receive data (bytes) and want to append that to a file (which happens to be an mbox). Can't you "just do that" ? IOW, read the bytes, open the file, dump the bytes, close the file ? Karsten -- https://mail.python.org/mailman/listinfo/python-list