Modify

Opened 14 years ago

Closed 14 years ago

#7773 closed defect (fixed)

AttributeError in 'EmailDistributor' from 0.11.2dev

Reported by: Dmitri Owned by: Robert Corsaro
Priority: normal Component: AnnouncerPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12

Description

No announcements. In log:

2010-10-05 10:39:03,461 Trac[api] ERROR: AnnouncementSystem failed.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/announcer/api.py", line 407, in _real_send
    distributor.distribute(transport, packages[transport], evt)
  File "/usr/lib/python2.6/site-packages/announcer/distributors/mail.py", line 352, in distribute
    self._do_send(transport, event, k, v, fmtdict[k])
  File "/usr/lib/python2.6/site-packages/announcer/distributors/mail.py", line 470, in _do_send
    if self.set_message_id:
AttributeError: 'EmailDistributor' object has no attribute 'set_message_id'

Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by Dmitri

This change works for me

  • announcer/distributors/mail.py

     
    467467        rootMessage = MIMEMultipart("related")
    468468
    469469        headers = dict()
    470         if self.set_message_id:
    471             headers['Message-ID'] = self._message_id(event.realm)
     470       
     471        headers['Message-ID'] = self._message_id(event.realm)
    472472        headers['Date'] = formatdate()
    473473        from_header = formataddr((
    474474            self.from_name or self.env.project_name,

comment:2 Changed 14 years ago by Robert Corsaro

Resolution: fixed
Status: newclosed

(In [9255]) Fix bug with set_message_id

Fixes #7773

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Robert Corsaro.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.