Page MenuHomePhabricator

Annotate all the reasons that a user is included on the recipient list for mail
Open, WishlistPublic

Description

Viewing a message in /mail/ should explain all the reasons each recipient was included on the message.

This is a whole lot of work but the alternative is fishing expeditions through application features.


Original Description

On our private install, I received the following email:

Date: Mon, 14 Sep 2015 11:54:47 +1000
To: josh@mydomain.com
From: "User A" <phabricator@mydomain.com>
Reply-to: T26779+24+5fe0121e81679d52@phabricator.mydomain.com
Subject: [Maniphest] [Updated] T26779: REDACTED
Message-ID: <61a94cf30e6a613af9646d79c4dc7d69@localhost.localdomain>
X-Priority: 3
X-Phabricator-Sent-This-Message: Yes
X-Mail-Transport-Agent: MetaMTA
X-Auto-Response-Suppress: All
X-Phabricator-Mail-Tags: <maniphest-projects>
Thread-Topic: T26779: REDACTED
X-Herald-Rules: <29>, <26>
X-Phabricator-Projects: <#project_one>, <#project_two>
X-Phabricator-To: <PHID-USER-fplpdm5kzihjdjndb6ql>
X-Phabricator-Cc: <PHID-USER-fplpdm5kzihjdjndb6ql>
X-Phabricator-Cc: <PHID-USER-hff4bjlxuuo5n27uuaat>
X-Phabricator-Cc: <PHID-USER-abzwhc667osh5mwd4gk7>
Precedence: bulk
In-Reply-To: <maniphest-task-PHID-TASK-qkkj25dgcadxcktq4jlb@phabricator.mydomain.com>
References: <maniphest-task-PHID-TASK-qkkj25dgcadxcktq4jlb@phabricator.mydomain.com>
Thread-Index: YTBmMmMzZjVhMDVhYTIzNzRiODhjZjJlNWQyIFX2KOc=
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mydomain.com; 
 i=@mydomain.com; q=dns/txt; s=mail; t=1442195687; h=Subject : To : 
 From : Date; bh=aHov4ld5zVxvkLoXMdJ3Y77H0Gum08xpg6nfguy9m5M=; 
 b=aNyM0PMLUJ7FF6M8Xsb1e5yVanRIhzEoqrQdBkrY6+RRvFMaIHXpeJBIPDqyxg24BWYloT
 rHxk0r7ppDsmSsUdjjeAHJ0/ewdUI4RO0NhwmGxVGhIsurL/GqrN7ujBBpb1NOkWqQjiZ92D
 W3FpsSMQ+bTBp8EDroWkkVj1lA91A=

user_a added a project: #project_one.

TASK DETAIL
https://phabricator.mydomain.com/T26779

EMAIL PREFERENCES
https://phabricator.mydomain.com/settings/panel/emailpreferences/

To: user_a
Cc: user_a, user_b, user_c

When I navigate to the task, however, user_b isn't a subscriber. There are no transactions which act on user_b either.

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Mail.
joshuaspence added a subscriber: joshuaspence.

Do Herald rules 26 or 29 send them mail?

No, both rules are a custom action which notifies a HipChat room.

Does user_b watch #project_one or #project_two?

(That should be shown in "Watchers" on the project pages.)

Ah yeah, it seems that is the case.

I vaguely intend to rewrite all the code which adds recipients to collect the reasons they were added so it says "user_b (watches #project_one, author, added by Herald, subscribed implicitly by comment)" somewhere. But this is a lot of work.

epriestley renamed this task from Email CC list shows wrong user to Annotate all the reasons that a user is included on the recipient list for mail.Sep 25 2015, 3:29 PM
epriestley triaged this task as Wishlist priority.
epriestley updated the task description. (Show Details)

Until this is implemented, can someone tell me how to unsubscribe from Harbor Master build failure emails (see T11282)?

There is no way to unsubscribe from them.

eadler added a project: Restricted Project.Jul 25 2016, 4:54 PM
eadler moved this task from Backlog to Nice To Have on the llvm board.

Another anecdote explaining that the current situation is confusing:
As a user who has not been active in Phabricator for a while and as my interests in projects might have shifted, I am trying to find out why I receive email notifications about certain tasks and how to disable these specific notifications to reduce the amount of uninteresting mail. But:

  • My "Profile" user page does not list any "Projects".
  • The email headers do not tell me either why I received an email.

After some thinking I realized that the reason was that I was a watcher (but not a member) of an associated project tag of a task.
I'd expect my "Profile" user page to not only list "Projects" (actually means: Member) but also projects that I only watch. Currently I need to go to one of the tasks that I received an email about, click all associated projects, and go to the "Members and Watchers" page of each project to find out that I once added myself as a "watcher" and remove myself.
However, that might still not explain why I received a specific email: If I have "Settings > Email > Email Preferences > Maniphest Tasks > One of a task's subtasks changes status" enabled, I also need to check all subtasks' projects whether I watch one of them.

This problem was originally brought up in https://www.mediawiki.org/wiki/Topic:Tpsayrat5314d0j9

I don't expect watchers to be on profile, but we should provide a search for it in /projects/