プロジェクト

全般

プロフィール

Vote #81278

完了

Allow newlines and quote characters within mail body delimiters

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
152
issue_org_id:
34794
author_id:
2784
assigned_to_id:
332
comments:
7
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When processing incoming emails, there is the possibility to define body delimiters after which no further content should be read from the mail body.

When defining long delimiters (e.g. commonly in @Setting.emails_header@), the delimiter may break into multiple lines in replies with (nested) quote characters at the beginning of lines.

With the attached patch, we extend the handling of "normal" delimiters (i.e. delimiters not defined as regular expressions) so that any space within the delimiter can also span multiple lines with optional quote characters at the front. This ensures that even delimiters broken over multiple lines in incoming mails will be recognized as such.

The patch is against current trunk (r20752) and can be applied with @patch -p1 < 0001-Allow-newlines-and-quote-characters-within-mail-body.patch@.


journals

--------------------------------------------------------------------------------
This is a nice improvement because certain clients are sending the reply on two lines. Below an example from Gmail:

<pre>
On Wed, Feb 24, 2021 at 6:13 PM John Doe <john.doe@example.com>
wrote:
</pre>

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Please note though that the change only applies to non-regex delimiters. To match this delimiter, you would still need to define a regex manually (and enable the _Enable regular expressions_ checkbox) similar to:

<pre>
On .* at .* wrote:
</pre>

The patch does not touch those defined regular expressions. It merely improves the situation for static delimiters.

Thos static delimiters are most useful along with a static email header which is added on top of all notification mails, e.g. something like

> --- Please write your response above this line and omit any large signatures ---

You can then define this static mail header as a delimiter to omit the quoted text from the notification if someone replies to it.
--------------------------------------------------------------------------------
Thanks Holger for clarifications, I totally missed that mention.

--------------------------------------------------------------------------------
Setting the target version to 4.2.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you for your contribution.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0