Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (166 - 168 of 332)

Ticket Resolution Summary Owner Reporter
#217 fixed Additional config option (`parentdir`) to avoid the need of sections for each project bas sto@…
Description

I've patched email2trac to support an additional configuration option (parentdir) to avoid the need to edit the email2trac.conf for each project when using the ENV_PARENT_DIR option with tracd.

When parentdir is defined on the DEFAULT section the variable is used to build the project PATH when there is no section for the named project.

I'm using it to have email2trac configured for each new project without changing the mail system.

To avoid touching the postfix alias database I'm using addresses of the form trac+PROJECT@mail.domain (I have recipient_delimiter = + on the postfix main.cf file) and the alias file has an entry like the following:

trac: /usr/local/sbin/email2trac-alias

Where /usr/local/sbin/email2trac-alias is a script that does more or less the following:

#!/bin/sh
parentdir="/srv/trac"
if [ -f "$parentdir/$EXTENSION/conf/trac.ini" ]; then
  exec /usr/local/bin/run_email2trac --project="$EXTENSION"
fi
exit 67 # Unknown user

I'm attaching my patch to this ticket.

#218 fixed Problem when multiple trac accounts match email address bas Konstantin Ryabitsev <icon@…>
Description

I came across a problem when enabling "ticket_permission_system: trac". If there is more than one account that matches the same email address (e.g. for me it was both "konstantin" and "tracadmin" accounts), then the user lookup fails and email2trac treats emails from me as coming from a non-trac user. This tweak fixes the problem.

  • (a) email2trac.py.in vs. (b) -

    a b  
    339339                users = [ (u,n,e) for (u, n, e) in self.env.get_known_users(self.db)
    340340                        if e and (e.lower() == self.email_addr.lower()) ]
    341341
    342                 if len(users) == 1:
     342                if len(users) >= 1:
    343343                        self.email_from = users[0][0]
    344344                        self.author = users[0][0]
    345345
#219 fixed Option to detect valid users when using a default_domain and no email on settings bas sto@…
Description

At our installation we are using email_default_domain (or smtp_default_domain) for all users; that way no one has to set their email_address on their preferences, but when they open a ticket using email2trac the system believes that they are not valid users.

I'm attaching a patch to enable the use of a email_default_domain on the email2trac configuration to avoid that case; with the patch if someone with an address of the form USER@DEFAULT_DOMAIN sends a message and there is an entry for USER on the session table then the ticket is created by USER.

Note that the patch does not apply cleanly to the current trunk because of the changeset:481, but the fix is trivial... ;)

Note: See TracQuery for help on using queries.