[Mailman-Users] Help: 'str' object has no attribute 'get_sender'

Mark Sapiro msapiro at value.net
Thu Sep 28 17:51:50 CEST 2006


Mark Sapiro wrote:
>
>        if istype(msg, str):
>            msg = email.message_from_string(msg, Message.Message)


Ooops... How embarrassing. That should be

        if isinstance(msg, str):
            msg = email.message_from_string(msg, Message.Message)

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list