HomePhorge

[differential] gmail-compatible emails

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

Provenance
Ryan McElroyAuthored on May 8 2011, 12:35 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP1c2222f26f60: Revert "Make DifferentialChangesetParser explicitly map display to storage for…
Branches
Unknown
Tags
Unknown

Event Timeline