Download full email more than once raise error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Power Email |
New
|
Undecided
|
Unassigned |
Bug Description
Download full email more than once raise error.
When trying to download full email more than once (on the same email),
I get the following backtrace:
Environment Information :
System : Linux-2.
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Operating System Release : 2.6.31-15-generic
Operating System Version : #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 5.0.7
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/
result = LocalService(
File "/home/
return getattr(self, method)(*params)
File "/home/
res = service.execute(db, uid, object, method, *args)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
self.
File "/home/
id = self.pool.
TypeError: 'bool' object is unsubscriptable
Because in get_fullmail() the "for" loop use a variable id that is already defined
with the correct "pem_account_id".
585 id = self.pool.
...
616 for id in range(0,
617 mails = msg[id*2]
618 flags = msg[(id*2)+1]
619 if type(mails) == type(('tuple', 'type')):
620 if '\Seen' in flags:
621 ctx['state'] = 'read'
622 mail = email.message_
623 self.complete_
Same thing in get_mails():
487 for id in ids:
...
531 for i in range(rec.
532 typ, msg = serv.fetch(str(i), '(FLAGS RFC822)')
533 for id in range(0,
534 mails = msg[id*2]
535 flags = msg[(id*2)+1]
536 if type(mails) == type(('tuple', 'type')):
537 if '\Seen' in flags:
538 ctx['state'] = 'read'
539 mail = email.message_
540 if self.save_
541 self.write(cr, uid, id, {'last_
I have proposed a merge which fix those issues.
Best Regards,
Sylvain
I have I have problems with download full email mentioned in the ticket "92449