Changeset 570


Ignore:
Timestamp:
09/14/11 13:23:04 (10 years ago)
Author:
bas
Message:

use all 'to-addresses for recipient_list instead of just one, closes #268

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r567 r570  
     12.4.2
     2  * Fixed an error for text/plain attachments that are not specified as
     3    inline. These attachments were not attached to the ticket and were
     4    skipped, closes #270
     5    Reported by: hju add jochenkuhl dot de
     6    Fixed by: Bas van der Vlies
     7
     8  * Use all 'to-field' addresses in message for recipient_list instead of only one, closes #268
     9    Reported by: anonymous
     10    Fixed by: Bas van der Vlies
     11
    1122.4.0
    213  * Fixed an error in ticket_update_fields. Always check if given ticket
  • trunk/debian/changelog

    r566 r570  
    1 email2trac (2.4.0-6) stable; urgency=low
    2 
    3   * See Changelog , repr subject only for logging
     1email2trac (2.4.2-1) stable; urgency=low
     2
     3  * See Changelog
    44
    55 -- Bas van der Vlies <basv@sara.nl>  Mon, 22 Aug 2011 10:54:20 +0200
  • trunk/email2trac.py.in

    r569 r570  
    307307        """
    308308
    309         self.email_to = self.email_to_unicode(message['to'])
    310         self.to_name, self.to_email_addr = email.Utils.parseaddr (self.email_to)
     309        to_addrs = email.Utils.getaddresses( message.get_all('to', []) )
     310        self.email_to_addrs = list()
     311
     312        for n,e in to_addrs:
     313            self.email_to_addrs.append(e)
     314
     315        self.email_to_addrs = ','.join(self.email_to_addrs)
     316
    311317
    312318        self.email_from = self.email_to_unicode(message['from'])
     
    16181624            return False
    16191625
    1620         if not self.email_header_acl('recipient_list', self.to_email_addr, True):
    1621             self.logger.info('Message rejected : %s not in recipient list' %(self.to_email_addr))
     1626        if not self.email_header_acl('recipient_list', self.email_to_addrs, True):
     1627            self.logger.info('Message rejected : %s not in recipient list' %(self.email_to_addrs))
    16221628            return False
    16231629
  • trunk/email2trac.spec

    r546 r570  
    11Summary: Utilities for converting emails to trac tickets
    22Name: email2trac
    3 Version: 2.4.0
     3Version: 2.4.2
    44Release: 1
    55License: GPL
Note: See TracChangeset for help on using the changeset viewer.