Modify

Opened 4 years ago

Closed 4 years ago

#7773 closed defect (fixed)

AttributeError in 'EmailDistributor' from 0.11.2dev

Reported by: g1itch Owned by: doki_pen
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 4 years ago by g1itch

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 4 years ago by doki_pen

  • Resolution set to fixed
  • Status changed from new to closed

(In [9255]) Fix bug with set_message_id

Fixes #7773

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.