Email raw text to HTML

Поиск
Список
Период
Сортировка
От Sahil Harpal
Тема Email raw text to HTML
Дата
Msg-id CAKi=nnfbM=F9prUxW386Bizkz8Aw+Wv1CFxpQgaZ1ZjecUNM5A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Email raw text to HTML
Список pgsql-www
Hello,
I am curious about how Gmail converts plain text (Raw data) mail into a beautiful interface. Is there any library or something that will help us to transform plain text into HTML? 
I am aiming to represent text (email message body) as it is being displayed in any mailing services like gmail, yahoo or outlook. The motive is the text should be readable. It is not just about enclosing previous replies in the blockquote tag but we can even handle bold, italic, bullets, tables etc.

For example:
image1 => Gmail interface 
image2 => Mailing list view

Is there any method to do this conversion?

I tried replacing '>' to '| ' [image3]. And I think it is better than what is present. It will look better if we change color and background color for quoted text. But for this we actually need something that will help us to convert raw text to good looking HTML same as markdown does. But in case of markdown the syntax is different. For example it uses **text** for bold and gmail uses *text* for bold.

Thanks,
Sahil Harpal

Вложения

В списке pgsql-www по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Should we have a "Testing" topic in the CF app?
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Email raw text to HTML