← Back to team overview

openerp-india team mailing list archive

[Bug 1033232] Re: [Trunk] Incoming mail reply fails in message_append

 

Hi Jignesh

Thanks for the feedback.

I have re-tested with latest trunk (addons 7298, server 4360, web 28972)
and the traceback problem is gone.

And actually, with Mail Alias, is it a much easier setup, but I have problems with getting the right reply to address on outgoing mails (the reply_to field is gone on Sales team) - But that's probably due to my lack of knowledge on how to configure this in trunk/7.0
I think I will wait with further testing until 7.0 is closer to a release candidate. Can we still expect a release here in September 2012?

Thanks

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

Title:
  [Trunk] Incoming mail reply fails in  message_append

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  The processing of mail replies to existing mail thread fails in
  message_update:

  
  2012-08-05 11:54:48,847 6859 ERROR None openerp.addons.fetchmail.fetchmail: Failed to fetch mail from imap server xxx@xxxxxxxxx
  Traceback (most recent call last):
    File "/home/openerp/oe7dev/openerp-6.2dev/openerp/addons/fetchmail/fetchmail.py", line 195, in fetch_mail
      context=context)
    File "/home/openerp/oe7dev/openerp-6.2dev/openerp/addons/mail/mail_thread.py", line 644, in message_process
      model_pool.message_update(cr, uid, [res_id], msg, {}, context=context)
    File "/home/openerp/oe7dev/openerp-6.2dev/openerp/addons/mail/mail_thread.py", line 716, in message_update
      return self.message_append_dict(cr, uid, ids, msg_dict, context=context)
    File "/home/openerp/oe7dev/openerp-6.2dev/openerp/addons/mail/mail_thread.py", line 404, in message_append_dict
      context = context)
    File "/home/openerp/oe7dev/openerp-6.2dev/openerp/addons/mail/mail_thread.py", line 323, in message_append
      partner_id = ('partner_id' in thread._columns.keys()) and (thread.partner_id and thread.partner_id.id or False) or False
  AttributeError: 'str' object has no attribute '_columns'

  Looks like thread (and treads?) is not the expected type? 
  This setup is working on 6.1, and I can't see/find any change to the low-level mail handling that should cause this error - although OpenChatter has added a lot of nice stuff
   
  Tested with replies to event mails and helpdesk mails on nightly trunk source download from 2012-08-03 (http://nightly.openerp.com/trunk/nightly/src/openerp-6.2dev-20120803-230102.tar.gz) running on python 2.7.2 on Ubuntu 11.10 

  To reproduce:
  Setup an incomming mail server to create a new "Event Registration"  on incoming mail
  Set the Default Reply-To mail addresse on all "Types of Event" to the above mail server 
  Create an Event Registration
  Send an email to a partner's email address (A test email account)
  Reply from the test email account
  On next mail fetch the processing fails 

  The same is observed with "Helpdesk" - But note, the initial creation
  af Helpdesk issue from incoming mails works - It is only the incoming
  reply to mails from the Helpdesk thread that fails.

  I know Trunk is "Work in Progress", and not necessarily stable,  but
  this looks like some kind of regression error

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


References