github / github/email_reply_parser

issue in parsing email reply for html content

Aberta
#79 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Ruby
Estrelas
708
Forks
156
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
html, ruby
Domínio
backend
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.