github / github/email_reply_parser

If an email reply ends with a markdown-style quote, email reply parser includes this quote in the fragment corresponding to the quoted email reply

未关闭
#3 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
708
派生
156
PR 合并指标
30 天内没有已合并 PR

描述

For example:

```
Hi! I'm replying to an email! let me end it with a quote:

> this is a quote!

On Oct 9, 2011, at 3:47 PM, Maboo wrote:

> THIS IS THE ORIGINAL EMAIL!
> HI!
```

This produces the following fragments:

```
---
- !ruby/struct:EmailReplyParser::Fragment
quoted: false
signature: false
hidden: false
"@content": "Hi! I'm replying to an email! let me end it with a quote:"
"@lines":
- !ruby/struct:EmailReplyParser::Fragment
quoted: true
signature: false
hidden: true
"@content": |-

> this is a quote!

On Oct 9, 2011, at 3:47 PM, Maboo wrote:

> THIS IS THE ORIGINAL EMAIL!
> HI!
"@lines":
```

Maybe ERP should look for the `On Oct 9, 2011, at 3:47 PM, Maboo wrote` business as well as the angle bracket?

贡献指南

打开贡献指南

调研方向

Start by reproducing the issue with the email example and inspect the parser's handling of markdown-style quotes and the “On Oct 9, 2011...” reply marker. Done means the trailing quote is not included in the visible fragment while the original quoted email remains hidden.

由索引模型根据 Issue 内容生成。

评估

技术栈
ruby
领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。