Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (160 - 162 of 332)

Ticket Resolution Summary Owner Reporter
#179 fixed Email with blank subject will fail bas xurizaemon
Description

If an email with a blank subject is submitted, the following error occurs (from my syslog):

Feb 15 03:05:22 mohua email2trac: Traceback (most recent call last):
Feb 15 03:05:22 mohua email2trac:   File "/usr/bin/email2trac", line 1642, in <module>#012    tktparser.parse(sys.stdin)
Feb 15 03:05:22 mohua email2trac:   File "/usr/bin/email2trac", line 961, in parse#012    m.replace_header('Subject', m['Subject'].replace('\r', '').replace('\n', ''))
Feb 15 03:05:22 mohua email2trac: AttributeError: 'NoneType' object has no attribute 'replace'

I can't find the subject requirement documented, except obliquely (?) in response to #124.

If a site expected error output without a subject (eg some_cmd.sh | mail trac@example.org) to be handled by email2trac, this could be a nasty gotcha for them when those errors weren't turned into incoming tickets.

Testing for subject and inserting a default one would be a more graceful solution than the current exit.

Using Email2Trac $Id: email2trac.py.in 305 2010-01-11 15:09:54Z bas $

#180 fixed patch allow specific tracs to disable workflow on tickets bas zac@…
Description

Here's the patch. It allows individual trac instances to be configured to stop tickets from automatically being reopened on email. It defaults to off:

--- /usr/bin/email2trac 2009-10-03 00:01:24.000000000 +0000
+++ /root/email2zac     2010-02-14 02:50:49.000000000 +0000
@@ -267,6 +267,11 @@
                else:
                        self.IGNORE_TRAC_USER_SETTINGS = 0
 
+               if parameters.has_key('email_triggers_workflow'):
+                       self.EMAIL_TRIGGERS_WORKFLOW = int(parameters['email_tri
ggers_workflow'])
+               else:
+                       self.EMAIL_TRIGGERS_WORKFLOW = 1
+
        def spam(self, message):
                """
                # X-Spam-Score: *** (3.255) BAYES_50,DNS_FROM_AHBL_RHSBL,HTML_
@@ -644,7 +649,7 @@
                # reopen the ticket if it is was closed
                # We must use the ticket workflow framework
                #
-               if tkt['status'] in ['closed']:
+               if tkt['status'] in ['closed'] and self.EMAIL_TRIGGERS_WORKFLOW:
 
                        #print controller.actions['reopen']
                        #
#181 fixed python error when email2trac gets an email with any kind of attachment bas smcbutler
Description

when we send an email to the email2trac address we get the following python error.

i've looked through the archives and couldn't find anything similar (surprisingly)

help! :)

<support@…>: Command died with status 1:

"PYTHON_EGG_CACHE=/var/trac; export PYTHON_EGG_CACHE; /usr/local/bin/email2trac --ticket_prefix=vsc_trac". Command output: TD: saving email to /tmp/tmpGxSGuz.email2trac

Reporting-MTA: dns; methodics-da.com X-Postfix-Queue-ID: 64A8E20B9C X-Postfix-Sender: rfc822; simon@… Arrival-Date: Sat, 20 Feb 2010 19:45:02 -0800 (PST)

Final-Recipient: rfc822; support@… Original-Recipient: rfc822;support@… Action: failed Status: 5.3.0 Diagnostic-Code: x-unix; TD: saving email to /tmp/tmpGxSGuz.email2trac

Note: See TracQuery for help on using queries.