github / github/email_reply_parser

issue in parsing email reply for html content

オープン
#79 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Ruby
スター
708
フォーク
156
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
html, ruby
領域
backend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。