Unable to convert while full downloading mail

Bug #670362 reported by Nicola Riolini - Micronaet
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Power Email
New
Undecided
Unassigned

Bug Description

Hi, I configure IMAP account with Gmail, I can send and see my 6 message in all message folder (I set this one on account page).
when I try to open a full message (I open previous headers and I see right informations) I get this error on server:

Traceback (most recent call last):
  File "/home/administrator/Launchpad/openerp/server/bin/netsvc.py", line 299, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/administrator/Launchpad/openerp/server/bin/netsvc.py", line 77, in __call__
    return getattr(self, method)(*params)
  File "/home/administrator/Launchpad/openerp/server/bin/service/web_services.py", line 577, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/administrator/Launchpad/openerp/server/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/administrator/Launchpad/openerp/server/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/administrator/Launchpad/openerp/server/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/administrator/Launchpad/openerp/server/bin/addons/poweremail/poweremail_mailbox.py", line 152, in complete_mail
    self.pool.get('poweremail.core_accounts').get_fullmail(cr, uid, id, context)
  File "/home/administrator/Launchpad/openerp/server/bin/addons/poweremail/poweremail_core.py", line 998, in get_fullmail
    server_ref, mailid, context)
  File "/home/administrator/Launchpad/openerp/server/bin/addons/poweremail/poweremail_core.py", line 755, in complete_mail
    parsed_mail = self.get_payloads(mail)
  File "/home/administrator/Launchpad/openerp/server/bin/addons/poweremail/poweremail_core.py", line 1075, in get_payloads
    parsed_mail['text'] = tools.ustr(part.get_payload(decode=True)) # decode=True to decode a MIME message
  File "/home/administrator/Launchpad/openerp/server/bin/tools/misc.py", line 746, in ustr
    raise UnicodeError('unable de to convert %r' % (orig,))
UnicodeError: unable de to convert "\r\n-- \r\n<http://www.micronaet.it/>\r\n\r\n\r\nnicola riolini\r\n[area tecnica]\r\n\r\nConcessionario Autorizzato Passepartout Mexal <http://www.micronaet.it/>\r\nmicronaet s.r.l.\r\n\r\nsede operativa:\r\nvia iv novembre 264\r\n25010 borgosatollo (bs)\r\n\r\ntel./fax +39 030 2501517\r\n\r\nSkype Status <skype:rn.micronaet?call> call me skype (utente skype:\r\nrn.micronaet)\r\n\r\nATTENZIONE: Il contenuto di questo messaggio e rivolto unicamente alle\r\npersone cui \xe8 indirizzato e pu\xf2 contenere informazioni la cui\r\nriservatezza \xe8 tutelata legalmente. Ne sono vietati la riproduzione, la\r\ndiffusione e l'uso in mancanza di autorizzazione del destinatario. Se\r\nl'avete ricevuto per errore vogliate eliminare il messaggio in modo\r\npermanente e darcene cortesemente notizia. Analizzate sempre gli\r\nallegati prima di aprirli.\r\n\r\n\r\n"

Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) wrote :

And this string raise the same error in another e-mail:

UnicodeError: unable de to convert ' [image: Access Gmail on your mobile phone]\r\n<http://www.google.com/intl/en/mobile/default/mail.html>\r\n\r\nThe days of needing your computer to get to your inbox are long gone. You\r\ncan now use Gmail on your mobile phone to access your email from anywhere.\r\n Get Gmail for your phone\r\n\xbb<http://www.google.com/intl/en/mobile/default/mail.html#utm_source=wel-eml&utm_medium=eml&utm_campaign=en>\r\n'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.