Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (220 - 222 of 332)

Ticket Resolution Summary Owner Reporter
#138 fixed Encoding problem with attachment filename bas debacle@…
Description

I got an error message from email2trac (urllib.quote):

Traceback (most recent call last):
  File "/usr/bin/email2trac", line 1574, in <module>#012    tktparser.parse(sys.stdin)
  File "/usr/bin/email2trac", line 991, in parse#012    self.new_ticket(m, subject, spam_msg)
  File "/usr/bin/email2trac", line 805, in new_ticket#012    message_parts = self.unique_attachment_names(message_parts)
  File "/usr/bin/email2trac", line 1231, in unique_attachment_names#012    filename = urllib.quote(filename)
  File "/usr/lib/python2.5/urllib.py", line 1205, in quote#012    res = map(safe_map.__getitem__, s)
KeyError: u'\xf3'

Result was, that the ticket could not be created. I patched email2trac. Now it works, but I'm not sure, whether the patch is the best solution:

--- /usr/bin/email2trac.orig    2009-06-04 13:34:33.000000000 +0200
+++ /usr/bin/email2trac 2009-06-04 15:36:29.000000000 +0200
@@ -1228,7 +1228,7 @@
                                        pass
 
                        if self.QUOTE_ATTACHMENT_FILENAMES:
-                               filename = urllib.quote(filename)
+                               filename = urllib.quote(filename.encode('utf-8'))
 
                        # Make the filename unique for this ticket
                        num = 0
#80 duplicate Embed Images anonymous Robert Sandie <rsandie@…>
Description
JPG images that are attached embed and visible upon clicking the
ticket.

Maybe if you had a skitch account it would send there as I know there
are some limitations in embedding your own images.
#110 fixed Embedded images in emails bas martin.poeschmann@…
Description

When sending an email with an embedded image (from outlook in my case), the resulting attachment to the ticket is too small.

I changed line 1115 to: # Insert the attachment # fd = open(path, 'rb' )

Because Outlook sets the minetype to image/jpg the following change has to be made: line 1061: ext = mimetypes.guess_extension(part.get_content_type(),False)

Note: See TracQuery for help on using queries.