Public bug reported:

in the function message_forward inside mail_thred.py if the value of the
field msg['From'] is somthing like "[email protected]"
<[email protected]> the to_email function return a dictionary like this
['"[email protected]"', '[email protected]'] and this is wrong for the
from field.

Old code was:
smtp_from= to_email(msg['From'])

I patch the code like this:

smtp_from=[]
for mFrom in to_email(msg['From']):
    smtp_from = [mFrom]
    break

regards,
Matteo

** Affects: openobject-server
     Importance: Undecided
         Status: New

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

Title:
  6.1 Get mail dose not attach the mail propely

Status in OpenERP Server:
  New

Bug description:
  in the function message_forward inside mail_thred.py if the value of
  the field msg['From'] is somthing like "[email protected]"
  <[email protected]> the to_email function return a dictionary like
  this ['"[email protected]"', '[email protected]'] and this is wrong
  for the from field.

  Old code was:
  smtp_from= to_email(msg['From'])

  I patch the code like this:

  smtp_from=[]
  for mFrom in to_email(msg['From']):
      smtp_from = [mFrom]
      break

  regards,
  Matteo

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to