IMHO, this is a fix for this bug. Not tested, just managed to dpkg --configure -a
Matej
--- reportbug_submit.py.orig 2006-06-05 08:59:23.000000000 -0400 +++ reportbug_submit.py 2006-06-05 20:41:20.000000000 -0400 @@ -349,35 +349,32 @@ if smtphost: toaddrs = [x[1] for x in alist] smtp_message = re.sub(r'(?m)^[.]', '..', message) - - # Modified by AP 2006-03-29 - while failed != True: - ewrite("Connecting to %s via SMTP...\n", smtphost) - try: - conn = smtplib.SMTP(smtphost) - if smtptls: - conn.starttls() - if smtpuser: - if not smtppasswd: - smtppasswd = ui.get_password( - 'Enter SMTP password for [EMAIL PROTECTED]: ' % - (smtpuser, smtphost)) - conn.login(smtpuser, smtppasswd) - conn.sendmail(fromaddr, toaddrs, smtp_message) - conn.quit() - except (socket.error, smtplib.SMTPException), x: - - # If wrong password, try again... - if smtplib.SMTPResponseException.smtp_code == '535' - ewrite('SMTP error: authentication failed. Try again.') - continue - - failed = True - ewrite('SMTP send failure: %s\n', x) - fh, msgname = TempFile(prefix=tfprefix) - fh.write(message) - fh.close() - ewrite('Wrote bug report to %s\n', msgname) + # Modified by AP 2006-03-29 + while failed != True: + ewrite("Connecting to %s via SMTP...\n", smtphost) + try: + conn = smtplib.SMTP(smtphost) + if smtptls: + conn.starttls() + if smtpuser: + if not smtppasswd: + smtppasswd = ui.get_password( + 'Enter SMTP password for [EMAIL PROTECTED]: ' % + (smtpuser, smtphost)) + conn.login(smtpuser, smtppasswd) + conn.sendmail(fromaddr, toaddrs, smtp_message) + conn.quit() + except (socket.error, smtplib.SMTPException), x: + # If wrong password, try again... + if smtplib.SMTPResponseException.smtp_code == '535': + ewrite('SMTP error: authentication failed. Try again.') + continue + failed = True + ewrite('SMTP send failure: %s\n', x) + fh, msgname = TempFile(prefix=tfprefix) + fh.write(message) + fh.close() + ewrite('Wrote bug report to %s\n', msgname) else: try: pipe.write(message)