Custom Query (332 matches)


Show under each result:

Results (124 - 126 of 332)

Ticket Resolution Summary Owner Reporter
#219 fixed Option to detect valid users when using a default_domain and no email on settings bas sto@…

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... ;)

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

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) 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()) ]
    342                 if len(users) == 1:
     342                if len(users) >= 1:
    343343                        self.email_from = users[0][0]
    344344               = users[0][0]
#217 fixed Additional config option (`parentdir`) to avoid the need of sections for each project bas sto@…

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 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:

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

I'm attaching my patch to this ticket.

Note: See TracQuery for help on using queries.