[6.0.1] Fetchmail : Models inheriting mailgate.thread(eg.claim,helpdesk,etc.) need message_* methods!

Bug #708616 reported by pitititi
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Status tracked in Trunk
6.0
Fix Released
Low
Anup(SerpentCS)
Trunk
Confirmed
Wishlist
OpenERP R&D Addons Team 1

Bug Description

Hello,

  File "/openerp/bin/addons/fetchmail/fetchmail.py", line 152, in button_fetch_mail
    self.fetch_mail(cr, uid, ids, context=context)
  File "/openerp/bin/addons/fetchmail/fetchmail.py", line 204, in fetch_mail
    logger.notifyChannel(server.type, netsvc.LOG_WARNING, '%s' % (e))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)

I've this error when i try to fetch emails. The mail is read in the box but the case isn't created.

In my e-mail there isn't an accent or something like this.

I've OpenERP 6.0.1 in fr_ch

Related branches

tags: added: manitenance
tags: added: maintenance
removed: manitenance
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello

I have installed French(CH) fr_ch at my end. I also installed fetchmail module and tried to fetch mails. I was successfully able to fetch mails.

Can you please explain the steps in detail that you followed to generate this error?

Thanks.

Changed in openobject-addons:
status: New → Incomplete
assignee: nobody → Anup (OpenERP) (ach-openerp)
importance: Undecided → Low
Revision history for this message
pitititi (pitititi) wrote :

Yes, thanks for your help

1) install module fetchmail
2) Sale > Configuration >Email > Email Serve > New
3) Type : IMAP / Add Attachments : Yes / Active : Yes / Server - Username - Password - Port : My server information / SSL : no
4) Email Server action : Anyone / Model : crm.helpdesk (Helpdesk)
5) Confirm (all is ok in logs)
6) Put the button Fetch Emails

And the error appear...

i've trying with different serveur mail but i've the same error

Revision history for this message
pitititi (pitititi) wrote :

after rebooting my server (many times) i've this error

(without mail)
[2011-01-28 17:15:07,474][fetcheng] INFO:imap:fetchmail fetch/process 0 email(s) from fetch
(with new mail)
[2011-01-28 17:15:17,789][fetcheng] INFO:imap:fetchmail start checking for new emails on fetch
[2011-01-28 17:15:18,027][fetcheng] WARNING:imap:Method is not implemented

in english i've the same error

and in openerp/bin/addons/mail_gateway/mailgateway.py line 69 71 or 89 we have :

   def message_new(self, cr, uid, msg, context):
        raise Exception, _('Method is not implemented')

    def message_update(self, cr, uid, ids, vals={}, msg="", default_act='pending', context=None):
        raise Exception, _('Method is not implemented')

i try to fine a solution but i dont find the problem.

Changed in openobject-addons:
status: Incomplete → Confirmed
summary: - [6.0.1] Fetchmail error : ascii
+ [6.0.1] Fetchmail error : Objects inheriting
+ mailgate.thread(eg.claim,helpdesk,etc.) need message_* methods!
summary: - [6.0.1] Fetchmail error : Objects inheriting
+ [6.0.1] Fetchmail : Models inheriting
mailgate.thread(eg.claim,helpdesk,etc.) need message_* methods!
Revision history for this message
Ujjvala Collins (uco-openerp) wrote :

Hello,

We have fixed the error of unicode character in warning message for trunk-addons in addons1 branch lp:~openerp-dev/openobject-addons/uco-dev-addons1 with revision number 3562. And the second issue of "WARNING:imap:Method is not implemented" is a wishlist.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Pitititi,

Unicode error has been taken care of by revision 4398 <email address hidden> in stable 6.0.1.
The bigger part of the bug,unavailability of methods will be corrected soon.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Methods have been added to Claim and helpdesk Models by revision 4406 <email address hidden>.

Thanks.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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