openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22651
[Bug 1108847] Re: 6.1 Get mail dose not attach the mail propely
I try it again on a debug session,
if you put a brake point to the first line of the message_forward and try to execute the following code you get this problem.
code:
>>> a='"myMail@xxxxxxxxxx" <myMail@xxxxxxxxxx> '
>>> to_email(a)
['"myMail@xxxxxxxxxx"', 'myMail@xxxxxxxxxx']
with your code :
"Person Name" <test@tinyerp,com> it work fine, becouse "Person Name" is differen then <test@tinyerp,com> but if the name is the some, like in my exsample:
b='"test@xxxxxxxxxxx" <test@xxxxxxxxxxx>'
to_email(b)
['"test@xxxxxxxxxxx"', 'test@xxxxxxxxxxx']
bum .. you get the error ..
regards,
Matteo
--
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:
Incomplete
Bug description:
in the function message_forward inside mail_thred.py if the value of
the field msg['From'] is somthing like "myMail@xxxxxxxxxx"
<myMail@xxxxxxxxxx> the to_email function return a dictionary like
this ['"myMail@xxxxxxxxxx"', 'myMail@xxxxxxxxxx'] 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
References