Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (223 - 225 of 332)

Ticket Resolution Summary Owner Reporter
#205 fixed email2trac chokes on non-ascii (utf8) characters in workflow bas eirik.schwenke@…
Description

We had an initial ticket status of "forespørsel", and that caused email2trac to fail with the error(s):

email2trac: Traceback (most recent call last): 
email2trac:   File "/usr/bin/email2trac", line 2133, in <module>     tktparser.parse(sys .stdin) 
email2trac:   File "/usr/bin/email2trac", line 1531, in parse     self.new_ticket(m, sub ject, spam_msg) 
email2trac:   File "/usr/bin/email2trac", line 967, in new_ticket     self.set_ticket_fi elds(tkt) 
email2trac:   File "/usr/bin/email2trac", line 876, in set_ticket_fields     print 'trac .ini name %s = %s' %(name, value) 
email2trac: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 27: ordinal not in range(128) 

It would appear some more care is needed to support unicode in all strings in email2trac. I had a brief look at the script, but couldn't easily see if it would be safe and sound to simply wrap all missing strings with a .encode('utf-8') or not.

For now the workaround has been to limit ourselves to ascii-characters in ticket-status names -- but that is obviously not a good solution (it's looks a bit strange in Norwegian, in eg. Japanese it would be hopeless).

#114 wontfix When updating ticket should take in-reply-to -header into account bas eero.afheurlin@…
Description

It would be nice to check for the in-reply-to and references headers to see which comment this is a reply to since trac (0.11) notifications add this information to headers and when using the web interfacy "reply" button trac has these nice arrows for quick reference.

#241 fixed Strange error on CentOS-5.5, email2trac-2.0.2, python-2.5 bas edward.b.matheson@…
Description

Getting

Apr 11 13:03:02 ipcontrol1 postfix/local[27214]: 3397AF38130: to=<d318-support@ipcontrol1.atol>, relay=local, delay=0.86, delays=0.07/0.01/0/0.78, dsn=5.3.0, status=bounced (Command died with status 1: " /usr/local/bin/email2trac --project=atol --ticket_prefix=d318support". Command output: Traceback (most recent call last):   File "/usr/local/lib/python2.5/logging/__init__.py", line 753, in emit     self.flush()   File "/usr/local/lib/python2.5/logging/__init__.py", line 731, in flush     self.stream.flush() IOError: [Errno 27] File too large Traceback (most recent call last):   File "/usr/local/lib/python2.5/logging/__init__.py", line 753, in emit     self.flush()   File "/usr/local/lib/python2.5/logging/__init__.py", line 731, in flush     self.stream.flush() IOError: [Errno 27] File too large Traceback (most recent call last):   File "/usr/local/lib/python2.5/logging/__init__.py", line 753, in emit     self.flush()   File "/usr/local/lib/python2.5/logging/__init__.py", line 731, in flush     self.stream.flush()
  • Currently have postfix setup with /var/trac/aliases owned by the 'apache' user, which is how trac runs.
  • running Python 2.5.5
  • aliases file looks like
    trac: "| /usr/local/bin/email2trac --project=atol"
    d318-support: "| /usr/local/bin/email2trac --project=atol --ticket_prefix=d318support"
    
  • trac is installed in /var/trac/atol
    • db file is writable by user 'apache'
    • world has r-x perms on all dirs
  • I *CAN* get it working as root using your msg.txt:
    root@myhost # /usr/local/bin/email2trac < /tmp/msg.txt 
    saving email to /tmp/tmpdeh4T6.email2trac
    writing body to /tmp/tmp2DcydZ.email2trac
    
  • but does *nothing* using run_email2trac j
  • selinux is disabled
  • email2trac.conf is simple
    DEFAULT]
    project: /var/trac/atol
    debug: 1
    log_type: file
    log_level: debug
    log_file: /tmp/email2trac.log
    umask: 022
    spam_level: 5
    reply_all : 0
    mailto_link: 0
    umask: 022
    email_header: 0
    trac_version: 0.12
    enable_syslog : 1
    alternate_notify_template :
    alternate_notify_template_update :
    drop_spam : 0
    verbatim_format: 1
    strip_signature: 0
    email_quote: >
    strip_quotes: 0
    ignore_trac_user_settings: 0
    black_list: MAILER-DAEMON@
    drop_alternative_html_version: 1
    ticket_update: 1
    strip_signature: 1
    html2text_cmd: /usr/bin/html2text -nobs
    
    [atol]
    spam_level : 1
    d318support_component : Branch_Support
    d318support_ttd : D318-support
    atolsupport_ttd : atol-support 
    

I've spent quite a bit of time trying to solve this .. and am truly flummoxed. I've tried the system /usr/bin/python ( Python 2.4.3 ) .. didn't make any difference. I am not getting enough info from the error to find the problem. Any suggestions on how i can get more info out? The response in the mail is long and just repeats:

 "/usr/local/lib/python2.5/logging/__init__.py", line 753, in emit
    self.flush()   File "/usr/local/lib/python2.5/logging/__init__.py", line
    731, in flush     self.stream.flush() IOError: [Errno 27] File too large
    Traceback (most recent call last):   File
    "/usr/local/lib/python2.5/logging/__init__.py", line 753, in emit
    self.flush()   File "/usr/local/lib/python2.5/logging/__init__.py", line
    731, in flush     self.stream.flush() IOE
  • All I get in the output log is
    email2trac atol: Found trac version: 0.12
    email2trac atol: Loading environment /var/trac/atol
    

Please Help ;-)

Note: See TracQuery for help on using queries.