Page MenuHomePhabricator

Add project names to a header in outbound Maniphest emails
Closed, ResolvedPublic

Description

At the moment I receive emails like this from Maniphest tasks:

Subject: [Maniphest] [Commented On] T29: Some Amazing Task

I checked the headers of the email and don't see any unique ident/string to allow a mail filter rule, so that tasks from different projects can be routed to different folders/labels on an email client, to avoid all the Maniphest tasks going into the inbox.

I checked through the code and saw some config options for setting the prefix to Task emails but nothing around this.

Was thinking of a header something like this:

X-Phabricator-Projects: Project1,Project2,Project3

I'll have a go at doing something for our use case but if there is another way to do this, I'm all ears.

Event Timeline

james.ellis raised the priority of this task from to Wishlist.
james.ellis updated the task description. (Show Details)
james.ellis added a project: Maniphest.
james.ellis added a subscriber: james.ellis.

We were discussing this in the context of the WMF migration to Phabricator as some people make heavy use of the X-headers for Component/Product from Bugzilla.

It was suggested by a helpful person to use Herald rules.

Herald really isn't quite the right fit.

With the Bugzilla X-headers that are automatically included in all emails, I can do:

  • If this email update that was sent to me involves some product, do something (filter it to another folder, add a tag, whatever).

With Herald rules, that becomes:

  • If anything happening in Phabricator involves this product, CC me on the email update, and then I can filter based on the Herald rule in the x-header.

Summary: With Bugzilla I can filter the bug mail I'm already getting. With Phabricator I'll have to get way more bug mail. :(

Am I missing something obvious?

Am I missing something obvious?

I was!

I assumed "Add me to CC" was the least invasive way of adding the X-Herald-Rules header, but if I selected "Do nothing" it does what I want (the X-Herald-Rules header is set with the rule number AND I only get the email if I'm already subscribed to the task).

(sorry for the spam, I'm over-caffeinated on a Friday afternoon)

Summary: it is possible for people to mimic what eg Bugzilla does but it's double the work (and pointing/clicking work, at that).

Phabricator-world: 1) make a Herald rule and 2) make an email filter rule
Bugzilla-world: 1) make an email filter rule

joshuaspence renamed this task from Add project(s) name to a header in Maniphest emails sent out, allowing email client filtering to Add project names to a header in outbound Maniphest emails.Jul 26 2014, 10:00 AM
joshuaspence updated the task description. (Show Details)
  • We can do this globally, but not until ManiphestTask really implements PhabricatorProjectInterface (T5245).
  • These headers aren't (last I knew) actionable in Gmail (since its mail rules can't examine headers). It sounds like there isn't an immediate need for this, but outside of WMF we've seen a lot of Gmail use. We could add a "Projects:" footer by the "To/Cc" footers to deal with this if there's a need for it.
  • These headers aren't (last I knew) actionable in Gmail (since its mail rules can't examine headers). It sounds like there isn't an immediate need for this, but outside of WMF we've seen a lot of Gmail use. We could add a "Projects:" footer by the "To/Cc" footers to deal with this if there's a need for it.

/me waves as the crazy Mutt user who can do things with random X-headers :)