Edgewall Software

Changes between Version 2 and Version 3 of TracDev/Proposals/AdvancedNotification/IEmailDecorator


Ignore:
Timestamp:
Oct 6, 2013, 10:39:43 PM (11 years ago)
Author:
Peter Suter
Comment:

Add charset parameter.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/Proposals/AdvancedNotification/IEmailDecorator

    v2 v3  
    1919* `event`: A `trac.notification.api.NotificationEvent` instance describing the event about which the recipients should be notified.
    2020* `message`: An `email.message.Message` to decorate.
     21* `charset`: A `email.charset.Charset` to use for headers.
    2122
    2223== Examples ==
     
    3536    # IEmailDecorator methods
    3637   
    37     def decorate_message(self, event, message):
    38         set_header(message, 'X-Trac-Notification-Author', event.author)
     38    def decorate_message(self, event, message, charset):
     39        set_header(message, 'X-Trac-Notification-Author', event.author, charset)
    3940}}}
    4041
     
    5253 * This interface originated in th:AnnouncerPlugin as `IAnnouncementEmailDecorator`.
    5354   * DONE Removed continuation-passing style (`next_decorator()`).
     55   * DONE Added `charset` parameter.