Homec4science

[differential] gmail-compatible emails

Authored by Ryan McElroy <ryanmce@gmail.com> on May 8 2011, 09:35.

Description

[differential] gmail-compatible emails

Summary:
Gmail ignores text inside of [square brackets] when deciding what to group
together. This diff does two things to create the right behavior for gmail:

  1. put the verb text inside of [square brackets] so different verbs don't break gmail threading.
  2. Add the Diff ID to the email thread, so different diffs with the same name don't group together.

Furthermore, to aid in distinguishing who is doing what when the from field
can't be spoofed, this diff adds the usename just before the verb. This works
quite well in the english language. For example:

[Differential] [rm requested a review of] D1: [admin] Create arcconfig for

code reviews

[Differential] [rm commented on] D1: [admin] Create arcconfig for code reviews

It's almost like a complete sentence. All it's missing is a period.

Test Plan:
Did it live on my test setup. Received emails with subjects that looked right.
Verified that gmail grouped the emails despite the different actions taking
place (tested: comments, planned changes, request review).

Reviewed By: epriestley
Reviewers: epriestley, jungejason
CC: aran, epriestley, rm
Differential Revision: 251

Details

Committed
Ryan McElroy <ryanmce@gmail.com>May 8 2011, 11:04
Pushed
aubortJan 31 2017, 17:16
Parents
rPH1c2222f26f60: Revert "Make DifferentialChangesetParser explicitly map display to storage for…
Branches
Unknown
Tags
Unknown

Event Timeline

Ryan McElroy <ryanmce@gmail.com> committed rPH846d625ed0eb: [differential] gmail-compatible emails (authored by Ryan McElroy <ryanmce@gmail.com>).May 8 2011, 11:04