I everybody,
a few months ago, I'd submited to the Mailman Users List a problem with the python script Message.py occuring during membership management:


http://mail.python.org/pipermail/mailman-users/2003-October/031894.html

The same error occurs with Mailman 2.1.4 ((Python 2.3.3):

**********
UserNotification.__init__(self, recips, sender, subject, text, lang)
   File "/var/mailman/Mailman/Message.py", line 206, in __init__
     errors='replace')
TypeError: __init__() got an unexpected keyword argument 'errors'
**********

All is working fine after deleting the argument errors in the following lines :
class UserNotification(Message):
"""Class for internally crafted messages."""


    def __init__(self, recip, sender, subject=None, text=None, lang=None):
        Message.__init__(self)
        charset = None
        if lang is not None:
            charset = Charset(Utils.GetCharSet(lang))
        if text is not None:
            self.set_payload(text, charset)
        if subject is None:
            subject = '(no subject)'
        self['Subject'] = Header(subject, charset, header_name='Subject',
                errors='replace')       <--------here's the problem !
        self['From'] = sender
        if isinstance(recip, ListType):
            self['To'] = COMMASPACE.join(recip)
            self.recips = recip
        else:
            self['To'] = recip
            self.recips = [recip]


What do you think about that ?


--
Pascal GEORGE



_______________________________________________
Mailman-Developers mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-developers

Reply via email to