Homec4science

Fix "request" and "update" mail preferences for Differential

Authored by epriestley <git@epriestley.com> on Jul 22 2013, 21:20.

Description

Fix "request" and "update" mail preferences for Differential

Summary:
Fixes T3030. T1977 attempted to fix this but either didn't work (I think this is the case) or was broken later. We don't send DifferentialCommentMail on a create or update; we send DifferentialReviewRequestMail.

Also update the details to be more clear.

Test Plan:
Verified review request mail is marked undeliverable:

$ ./bin/mail show-outbound --id 6644
...
PARAMETERS
...
mailtags: ["differential-review-request"]
...
subject: D922: asdf
subject-prefix: [Differential]
vary-subject-prefix: [Request, 100 lines]
...
RECIPIENTS
! duck (duck)
    - This mail has tags which control which users receive it, and this recipient has not elected to receive mail with any of the tags on this message (Settings > Email Preferences).

BODY
epriestley requested code review of "asdf".
...

Verified update mail is marked undeliverable:

$ ./bin/mail show-outbound --id 6646
...
Message: Message has no valid recipients: all To/Cc are disabled, invalid, or configured not to receive this mail.

PARAMETERS
...
mailtags: ["differential-updated"]
...
subject: D922: asdf
subject-prefix: [Differential]
vary-subject-prefix: [Updated, 100 lines]
...
RECIPIENTS
! duck (duck)
    - This mail has tags which control which users receive it, and this recipient has not elected to receive mail with any of the tags on this message (Settings > Email Preferences).

BODY
epriestley updated the revision "asdf".
...

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3030

Differential Revision: https://secure.phabricator.com/D6518

Details

Committed
epriestley <git@epriestley.com>Jul 22 2013, 21:20
Pushed
aubortJan 31 2017, 17:16
Parents
rPHf32e0e9330bd: Provide a callback for Queries to filter objects from alternate result sets
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHcf255cde3d20: Fix "request" and "update" mail preferences for Differential (authored by epriestley <git@epriestley.com>).Jul 22 2013, 21:20