Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (289 - 291 of 332)

Ticket Resolution Summary Owner Reporter
#28 duplicate email after ticket-creation with email2trac is not sent bas anonymous
Description

we use trac 0.10.4-2~feisty1 on an ubuntu server and have the following problem: we've configured under notification in the ini-file the option smtp_always_cc = ... (to three email adresses). If I create a new ticket manually, the mail regarding a new ticket is send. But if i add the new ticket by mailing it trough email2trac no mail will be sent but there is a ticket with the status new.

#33 duplicate Using long name for post bas anonymous
Description

I have tom@… and scott@… that are involved with a ticket. When "Scott Serr <scott@…>" uses email2trac to reply to this ticket, it shows in Trac as being changed by "Scott Serr" and not "scott" which is his short name (user name) in trac. This is not bad, but now the email notifications are not going to just tom and scott, they also go to "Serr@…" also... which doesn't exist.

I'm looking at get_author_emailaddrs() at about line 334-353 in the latest release of email2trac.

        # Look for email address in registered trac users
        #
        users = [ u for (u, n, e) in self.env.get_known_users(self.db)
                         if e == self.email_addr ]

        if len(users) == 1:
             self.email_from = users[0]
        else:
             self.email_from =  self.email_to_unicode(message['from'])
             #self.email_from =  self.email_to_unicode(self.email_addr)

Yes, "scott" has filled out his Trac settings name "Scott Serr" and email "scott@…". I'm not a Python programmer, but it seems the users variable is not filled with the right stuff. Help?

#34 fixed Have newer seen such a good work before! bas anonymous
Description

Source of this problem is in TicketEmailParser::notify().

Here it tries to set hrefs:

self.env.abs_href = Href(self.get_config('project', 'url'))
self.env.href = Href(self.get_config('project', 'url'))

Unfortunately as of Trac version 0.11 abs_href and href are properties that don't have function for setting value (see http://trac.edgewall.org/browser/trunk/trac/env.py):

href = property(_get_href, 'The application root path')
abs_href = property(_get_abs_href, 'The application URL')

So when trying to set hrefs you get str object is not callable exception. As a workaround I added set functions to above properties. See attached diff.

Note: See TracQuery for help on using queries.