← Back to team overview

openerp-india team mailing list archive

[Bug 1229809] Re: 6.1 fetchmail - attachment name with Umlaut fails

 

here is the fix:
Change line 43 in mail_message.py to
text = decode_header(text.replace('\r', '').encode('utf-8'))

** Changed in: openobject-addons
       Status: Invalid => Confirmed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to Odoo Addons.
https://bugs.launchpad.net/bugs/1229809

Title:
  6.1 fetchmail - attachment name with Umlaut fails

Status in Odoo Addons:
  Confirmed

Bug description:
  Error

  2013-09-24 15:19:38,049 24517 INFO ? fetchmail: start checking for new emails on imap server "my server"
  2013-09-24 15:20:00,180 24517 WARNING ? document: Couldn't save data:
  Traceback (most recent call last):
    File "/srv/openerp/instances/openerp_prod_chricar/src/server/openerp/addons/document/document_storage.py", line 590, in set_data
      fp = open(fname,'wb')
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 91: ordinal not in range(128)

  enclosed patch fixes this

  
  FYI
  didn't find equivalent file document_storage.py in 7.0 and didn't test 7.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1229809/+subscriptions


References