Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (286 - 288 of 332)

Ticket Resolution Summary Owner Reporter
#121 fixed Configuration of smtp_replyto on a per-project basis bas steve.brown@…
Description

Hi there,

We're using email2trac 0.30 quite nicely with Trac 0.11.2 - thanks for your efforts!

In our org, we funnel support requests from each customer to special email addresses. Ideally, I'd like the reply-to email address in the email notification to be configurable from email2trac.conf on a per project basis. That way the recipient of the ticket notification can just Reply to the notification (to update, say) and ensure it gets sent to the correct 'special' email address originally used.

Hope that makes sense?

I've poked around and not being a Python guru am not too sure how to reset self.replyto_email - it seems to be set to the value in trac.ini by notification.py. Any clues gratefully received!

Steve

#296 fixed A small patch that adds a configurable strip_signature_regex bas steverweber@…
Description

Find attached... A small patch that adds a configurable strip_signature_regex

We have been using email2trac for some time and been maintaining a private copy with a small change.. I feel it would be best if it was merged into your version of the.. email2trac.py.in

The attached file is in .py format and differs a little because I just need the simple script..

Anyways it allows email2trac.ini to have a.. strip_signature_regex = -----Original Message-----$|-- $|--$

it adds

    def setup_parameters(self):
        if self.parameters.umask:
            os.umask(self.parameters.umask)
----------
        if not self.parameters.strip_signature_regex:
            self.parameters.strip_signature_regex = '^-----Original Message-----$|^-- $|^--$'
----------

and

    def strip_signature(self, text):
        """
        Strip signature from message, inspired by Mailman software
        """
        self.logger.debug('function strip_signature')

        body = []
        for line in text.splitlines():
----------
            if re.match(self.parameters.strip_signature_regex, line):
----------
                break
            body.append(line)

please merge something along those lines into the trunk/master.. I probably should have compiled the regex instead of using it like i did wasting cpu... but you should get the idea..

Thanks

#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.

Note: See TracQuery for help on using queries.