Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#1713 closed defect (fixed)

email notification failure

Reported by: Matthew Good Owned by: Matthew Good
Priority: high Milestone: 0.9
Component: general Version: 0.8.4
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Email notification is producing an exception:

Traceback (most recent call last):
  File "e:\trac-0.9\Lib\site-packages\trac\ticket\web_ui.py", line 113, in _do_create
    tn.notify(ticket, newticket=True)
  File "e:\trac-0.9\Lib\site-packages\trac\Notify.py", line 218, in notify
    NotifyEmail.notify(self, ticket.id, subject)
  File "e:\trac-0.9\Lib\site-packages\trac\Notify.py", line 118, in notify
    Notify.notify(self, resid)
  File "e:\trac-0.9\Lib\site-packages\trac\Notify.py", line 57, in notify
    self.send(to)
  File "e:\trac-0.9\Lib\site-packages\trac\Notify.py", line 336, in send
    NotifyEmail.send(self, rcpt, hdrs)
  File "e:\trac-0.9\Lib\site-packages\trac\Notify.py", line 151, in send
    self.server.sendmail(self.from_email, rcpt, msg.as_string())
  File "E:\Python23\Lib\email\Message.py", line 130, in as_string
    g.flatten(self, unixfrom=unixfrom)
  File "E:\Python23\Lib\email\Generator.py", line 102, in flatten
    self._write(msg)
  File "E:\Python23\Lib\email\Generator.py", line 137, in _write
    self._write_headers(msg)
  File "E:\Python23\Lib\email\Generator.py", line 183, in _write_headers
    header_name=h, continuation_ws='\t').encode()
  File "E:\Python23\Lib\email\Header.py", line 412, in encode
    newchunks += self._split(s, charset, targetlen, splitchars)
  File "E:\Python23\Lib\email\Header.py", line 297, in _split
    elen = charset.encoded_header_len(encoded)
  File "E:\Python23\Lib\email\Charset.py", line 341, in encoded_header_len
    return len(s)
TypeError: len() of unsized object

Attachments (0)

Change History (1)

comment:1 by Matthew Good, 20 years ago

Resolution: fixed
Status: newclosed

Fixed in [1855]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.