Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#300 closed defect (fixed)

E-Mails with attachment doesn't work

Reported by: anonymous Owned by: bas
Priority: major Milestone: email2trac release 2.6.0
Component: email2trac Version: 2.5.0
Keywords: Cc:

Description

Creating tickets via email works but when an attachment is attached to the mail it will fail with following Tracebacks:

Traceback(most recent call last):
  File "C:/src4trac/email2trac/email2trac.py", line 2689, in <module>
    tktparser.save_email_for_debug(m, settings.project_name, True)
  File "C:/src4trac/email2trac/email2trac.py", line 566, in save_email_for_debug

    message_parts = self.get_message_parts(message)
  File "C:/src4trac/email2trac/email2trac.py", line 2062, in get_message_parts
    filename = self.check_filename_length(filename)
  File "C:/src4trac/email2trac/email2trac.py", line 716, in check_filename_lengt
h
    filemax_length = os.pathconf('/', os.pathconf_names['PC_NAME_MAX'])
AttributeError: 'module' object has no attribute 'pathconf'
fetchmail: MDA returned nonzero status 1
 not flushed

We use python 2.7 and trac 0.12.3 on a windows server 2k8. Can you tell me what I did wrong.

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by bas

  • Status changed from new to assigned

I used code that is only available on Unix. Are you experience with python? If yes can you start python:

import os
os.pathconf('/', 'PC_NAME_MAX')

What is the result of the above code?

comment:2 Changed 9 years ago by anonymous

I get the following Traceback

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'pathconf'

Thank you for your help.

comment:3 Changed 9 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [603]) fixed an error in saving attachments on windows platformss, closes #300

comment:4 Changed 9 years ago by bas

  • Milestone set to email2trac release X.X.X

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.