如何使用“>”前缀格式化文本回复

如何使用“>”前缀格式化文本回复

我有时会收到一封 HTML 电子邮件,我想以带有 ">" 前缀的文本形式进行回复。

当我进行文本回复时,Thunderbird 所做的就是在整个段落中添加一个“>”前缀。例如:

> Mozilla Thunderbird is a free and open-source cross-platform email client, personal information manager, news client, RSS and chat client developed by the Mozilla Foundation. The project strategy was originally modeled after that of the Mozilla Firefox web browser.

Thunderbird 中是否有一个设置会产生以下结果:

> Mozilla Thunderbird is a free and open-source cross-platform
> email client, personal information manager, news client, RSS
> and chat client developed by the Mozilla Foundation. The
> project strategy was originally modeled after that of the
> Mozilla Firefox web browser.

答案1

使用:

fmt -w 65 file |sed  -e 's/^>//' -e  's/^/>/'

示例输出:

>Mozilla Thunderbird is a free and open-source cross-platform
>email client, personal information manager, news client,
>RSS and chat client developed by the Mozilla Foundation. The
>project strategy was originally modeled after that of the
>Mozilla Firefox web browser.

相关内容