Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (226 - 228 of 332)

Ticket Resolution Summary Owner Reporter
#251 fixed NameError prevents script from running bas kofal002@…
Description

With the latest version of Email2Trac on Windows Server 2008 r2 and Python 2.7.1 (with Windows Extensions installed), I get this error:

Traceback (most recent call last):
  File "C:/.../Email2Trac/email2trac.py", line 2382, in <module>
    logger = setup_log(settings, os.path.basename(settings.project), debug_interactive)
  File "C:/.../Email2Trac/email2trac.py", line 2281, in setup_log
    log_handler = logging.handlers.NTEventLogHandler(logid, logtype='Application')
NameError: global name 'logid' is not defined

The phrase "logid" appears nowhere else in the script. I tried just changing "logid" to 1 and got a different error:

Traceback (most recent call last):
  File "C:/.../Email2Trac/email2trac.py", line 2382, in <module>
    logger = setup_log(settings, os.path.basename(settings.project), debug_interactive)
  File "C:/.../Email2Trac/email2trac.py", line 2281, in setup_log
    log_handler = logging.handlers.NTEventLogHandler(1, logtype='Application')
  File "C:\Python27\lib\logging\handlers.py", line 917, in __init__
    self._welu.AddSourceToRegistry(appname, dllname, logtype)
  File "C:\Python27\lib\site-packages\win32\lib\win32evtlogutil.py", line 35, in AddSourceToRegistry
    "SYSTEM\\CurrentControlSet\\Services\\EventLog\\%s\\%s" % (eventLogType, appName))
pywintypes.error: (5, 'RegCreateKey', 'Access is denied.')

Changing this to a different log type prevents this from happening. Instead of ending on a fatal error, perhaps if Windows logging does not work, default to a local log file instead?

#252 fixed Option to automatically add reporter to ticket cc field bas kofal002@…
Description

Hello,

We're using a Trac instance for both internal and customer-facing ticket reports, and want to be able to reply to tickets to send a customer (the reporter on an auto-generated ticket). However, we don't want to use the always_notify_reporter option in Trac, to avoid mailing developers about normal tickets.

Thus, we need a way to mail a reporter about Email2Trac tickets only. I believe the easiest way to do this would be to set a cc field on ticket creation with the email of the reporter. However, to my knowledge a default_cc field in email2trac.conf would not accept a reporter variable.

Could there be an option to automatically add the reporter (which, with email2trac, will always be an email address) to the CC field of any new tickets?

#253 fixed Script easily confused by duplicate subject lines bas kofal002@…
Description

As mentioned in #252, we're using this script to handle incoming customer email. In this use case, it is possible to confuse the script simply by having two tickets named the same (or, with Email2Trac, two emails with the same subject line).

To reproduce:

  • Obtain two email accounts, accountA and accountB.
  • From both accounts send an email with the same subject line.
  • Email2Trac will create two tickets.
  • Use both accounts to reply to their own email.
  • Email2Trac will place both replies on accountB's ticket (whichever has the higher ticket number).

Expected behavior:

  • I would expect accountA's reply to go to accountA's ticket instead.
  • If no ticket number is found in subject line and multiple tickets match the subject line, Email2Trac should prioritize tickets that have reporter equal to the email sender.
Note: See TracQuery for help on using queries.