Merge lp:~openerp-dev/openobject-server/7.0-mail_issues-adh into lp:openobject-server/7.0

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-server/7.0-mail_issues-adh
Merge into: lp:openobject-server/7.0
Diff against target: 13 lines (+3/-0)
1 file modified
openerp/tools/mail.py (+3/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-server/7.0-mail_issues-adh
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+220788@code.launchpad.net

Description of the change

Hello,
Here I had solved while you get project issue from configured incoming mail server if your mail's body contain ">" sign it display > instead of that.
You just have to add following lines in html2plaintext method defined in server>openerp>tools>mail.py

html = html.replace('&lt;', '<')
html = html.replace('&gt;', '>')
html = html.replace('&amp;', '&')

Thanx
Anand Dharampuriya(ADH)

To post a comment you must log in.

Unmerged revisions

5308. By Anand Dharampuriya(OpenERP)

[FIX] Solve while you get project issue from configured incoming mail server it show &gt; for every greaterthen sign(>)of body's content https://bugs.launchpad.net/openobject-addons/+bug/1168376

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/tools/mail.py'
2--- openerp/tools/mail.py 2014-02-10 14:40:23 +0000
3+++ openerp/tools/mail.py 2014-05-23 11:20:32 +0000
4@@ -211,6 +211,9 @@
5 html = re.sub('<br\s*/?>', '\n', html)
6 html = re.sub('<.*?>', ' ', html)
7 html = html.replace(' ' * 2, ' ')
8+ html = html.replace('&lt;', '<')
9+ html = html.replace('&gt;', '>')
10+ html = html.replace('&amp;', '&')
11
12 # strip all lines
13 html = '\n'.join([x.strip() for x in html.splitlines()])