Rob Jackson wrote: >Due to a change in the Message board, the messages come through as >multipart/mixed. > >If I try to run this in the multipart/mixed section of Decorate.py, I get: > >TypeError: expected string or buffer.
Not surprising, since the payload of a multipart message is not the textual contents of the message; it is a list of message objects each of which is one of the sub-parts of the message. >What needs to be done to make this work properly? It depends on what the incoming message looks like and what you want the result to be. Perhaps the description of the walk() method (and the other message methods) at <http://docs.python.org/lib/module-email.Message.html> will help. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp