Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Lots of Junk in incoming Emails

By
rishi kesh
on 4/3/13, 1:15 PM 1,659 views

When i am receiving an email to openerp i am getting a lot of junk text in the description. I have put an example below. Its really hard to read the emails because of this as the contents are hidden between the texts. Can some one help me solve this issues?

FYI Please Thanks & Regards, SHAUKAT ALI KHAN <!ze:11.0pt; font-family:"Calibri","sans-serif"; color:#1B0EBE; font-weight:bold;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"Balloon Text Char"; margin:0in; margin-bottom:.0001pt; font-size:8.0pt; font-family:"Tahoma","sans-serif"; color:#1B0EBE; font-weight:bold;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:#1B0EBE; font-weight:bold;} span.BalloonTextChar {mso-style-name:"Balloon Text Char"; mso-style-priority:99; mso-style-link:"Balloon Text"; font-family:"Tahoma","sans-serif"; color:#1B0EBE; font-weight:bold;} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.Section1 {page:Section1;} -->

Thanks for your reply but i think this is something that should be there by default on such a powerful application. Since Openerp is promoting the messaging application as a unified communication solution. Its necessary to get the incoming emails properly. I have also setup the emails to create leads and support queries and i am facing the same issue with that. It doubles the work cleaning the email and understanding them. Hope some one finds a solution for this sooner.

rishi kesh
on 4/3/13, 3:01 PM
1

Fabien Pinckaers (fp)

--Fabien Pinckaers (fp)--
6598
| 6 8 8
fsdsdfsdf, Belgium
--Fabien Pinckaers (fp)--

Odoo Founder & CEO

Fabien Pinckaers (fp)
On 4/4/13, 4:12 AM

We are working on improving the parsing for v8.

The description field is not clean, but the message in the bottom is more clean usally. In v8, we will not fill in the description field, but just attach messages on the bottom.

0
Lorenzo Cabrini
On 4/3/13, 1:28 PM

The junk you see is formatting information, meaning the sender is using rich text (HTML) to write their emails and OpenERP is not able to render it. The best solution would be to get people to send you plain text emails instead. Unfortunately that is not always a practical solution since people send using whatever format they want.

There are some email "cleaning" utilities out there, that could remove HTML, CSS and Javascript from the mails, leaving only the actual text. I don't know off-hand if there is anything that runs within the context of OpenERP however. If you are running your own mail server, you could process the incoming emails.

This page: http://stackoverflow.com/questions/699468/python-html-sanitizer-scrubber-filter (sorry, insufficient karma) contains some information about tools written in Python. It should be farily simple to write or to get somebody to write an OE module wrapper around some tool like this. You'd need to make sure it is a tool that can remove inline CSS.

Lorenzo Cabrini
on 4/3/13, 2:36 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/3/13, 1:15 PM
Seen: 1659 times
Last updated: 3/16/15, 8:10 AM