github / github/email_reply_parser

issue in parsing email reply for html content

Abierto
#79 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Ruby
Estrellas
708
Forks
156
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

below is code, I am extracting the mail body using mailparser which is text/html content
and trying to get latest reply using EmailReplyParser.parse_reply, but it is extracting complete message not the reply only

mail = mailparser.parse_from_bytes(file.read()
reply_text = EmailReplyParser.parse_reply(mail.text_html[0])

it is working file for text/plain content
mail = mailparser.parse_from_bytes(file.read()
reply_text = EmailReplyParser.parse_reply(mail.text_plIn[0])

any suggestions are appreciated, thanks in adavnce

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start at EmailReplyParser.parse_reply and compare the mail.text_html[0] path with the working mail.text_plIn[0] path. The issue provides no file or test location; done would mean parsing HTML returns only the latest reply rather than the complete message, with coverage for that input.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
html, ruby
Área
backend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.