Changeset 603


Ignore:
Timestamp:
08/30/12 10:55:56 (12 years ago)
Author:
bas
Message:

fixed an error in saving attachments on windows platformss, closes #300

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r600 r603  
    2424    setting, closes #299
    2525    Reported by: ruediger dot kupper add gmail dot com
     26    Fixed by: Bas van der Vlies
     27
     28  * Attachments on Windows are not save due the fact that  os.pathconf is not supported. Set
     29    filename max length to 240 chars on windows, closes #300
     30    Reported by: Anonymous
    2631    Fixed by: Bas van der Vlies
    2732
  • trunk/email2trac.py.in

    r599 r603  
    714714        ## Determine max filename lenght
    715715        #
    716         filemax_length = os.pathconf('/', os.pathconf_names['PC_NAME_MAX'])
     716        try:
     717            filemax_length = os.pathconf('/', 'PC_NAME_MAX')
     718        except AttributeError, detail:
     719            filemax_lenght = 240
    717720
    718721        if len(quote_format) <= filemax_length:
Note: See TracChangeset for help on using the changeset viewer.