openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #19367
[Bug 1063251] Re: error upon retrieving mail through fetchmail, message_process
OK, I got the same error with the fixed branch:
Traceback (most recent call last):
File "/opt/1/openerp/addons/fetchmail/fetchmail.py", line 221, in fetch_mail
context=context)
File "/opt/1/openerp/addons/mail/mail_thread.py", line 361, in message_process
match = tools.res_re.search(msg.get('subject',_('No Subject')))
TypeError: expected string or buffer
And in the same time - i tried to fix the old stable branch with the
same error - I will post the changes i made because i'm not python
programmer and i don't know how to submit such fix - BTW the fix is
working fine with Arabic (unicode) and (No subject) msgs.
function message_append_dict line 289 :
subject = unicode(str(msg_dict.get('subject')),errors='ignore') or "No Subject!",
function message_process line 361:
match = tools.res_re.search(unicode(str(msg['subject']), errors='ignore'))
that solved the TypeError msg mentioned before and another error of type
UnicodeDecodeError ( i don't remember the other Unicode error exactly ).
Again I'm not a python programmer and for sure there's a better way to fix this - or it may not be a bug at all - so plz review and fix the fix if possible.
Hope this helps - and hope it will be fixed in the next release.
Regards,
--
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/1063251
Title:
error upon retrieving mail through fetchmail, message_process
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
I had installed openerp on a windows 7 64bit installation, everything
went well and I was able to create applicant (hr module) from email
addresses just fine, however, in the past 2 days, I started to
encounter an issue where email cannot be retrieved anymore. The log
shows as below:
2012-10-08 00:20:54,927 6776 INFO ? fetchmail: start checking for new emails on pop server my_pop_server
2012-10-08 00:20:57,460 6776 ERROR ? fetchmail: Failed to fetch mail from pop server my_pop_server
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 6.1-20121006-233043\Server\server\openerp\addons\fetchmail\fetchmail.py", line 221, in fetch_mail
File "C:\Program Files (x86)\OpenERP 6.1-20121006-233043\Server\server\openerp\addons\mail\mail_thread.py", line 361, in message_process
TypeError: expected string or buffer
I have no idea what's causing it as I'm not a programmer.
PS. on a side note, there was an email that received through my pop
server that has empty 'subject', could that be the cause of the
problem?
JKW
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1063251/+subscriptions
References