--- /usr/local/src/MailMan/Mailman/Handlers/Sendmail.py Mon Jul 9 12:58:39 2001 +++ Mailman/Handlers/Sendmail.py Wed Jan 30 19:53:17 2002 @@ -89,13 +89,14 @@ errcode = (status & 0xff00) >> 8 syslog('post', 'post to %s from %s, size=%d, failure=%d', mlist.internal_name(), msg.get_sender(), - len(msg.body), errcode) + len(str(msg.get_payload())), errcode) # TBD: can we do better than this? What if only one recipient out # of the entire chunk failed? failedrecips.append(chunk) # Log the successful post syslog('post', 'post to %s from %s, size=%d, success', - mlist.internal_name(), msg.get_sender(), len(msg.body)) + mlist.internal_name(), msg.get_sender(), + len(str(msg.get_payload()))) if failedrecips: msgdata['recips'] = failedrecips raise Errors.SomeRecipientsFailed