Page MenuHomePhabricator

Expand the power of "!action" commands in email
Closed, ResolvedPublic

Assigned To
Authored By
epriestley
Feb 6 2015, 9:29 PM
Referenced Files
F356038: Screen_Shot_2015-04-01_at_12.09.50_PM.png
Apr 1 2015, 7:13 PM
F355987: images.jpg
Apr 1 2015, 5:45 PM
Tokens
"Orange Medal" token, awarded by jhurwitz."Love" token, awarded by 20after4."Like" token, awarded by johnny-bit.

Description

Applications currently support !action commands, like !claim, in email replies.

Now that all applications are built on transactions, we should expand the power of these actions to make them easier to use, more flexible, and support more specialized use cases.

In particular, we should make these changes:

  • Support multiple !action commands per email.
  • Support commands in creation email, not just reply email.
  • Parse !action commands anywhere in email bodies (probably? Or anywhere at the beginning or end of an email body, just not in the middle? Not sure about how many false positives we'll hit).
  • Add more available !action commands.
  • Regularize documentation of !action commands so we don't have to enumerate them all in every email.

See some discussion in T6819. I have about half a diff for this, but it's likely very out of date. Desired result is for something like this to work:

!assign epriestley
!subscribe #whatever
!projects #urgent #red-colored
!status broken
!priority urgent

System xyz is literally on fire.

Event Timeline

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

Here's my half-diff, which is probably more like 10% of a diff:

https://secure.phabricator.com/differential/diff/28170/

epriestley merged a task: Restricted Maniphest Task.Mar 31 2015, 11:03 PM
epriestley added a subscriber: Unknown Object (MLST).
epriestley removed a subscriber: Unknown Object (MLST).Mar 31 2015, 11:08 PM

By the power of !action

images.jpg (194×259 px, 6 KB)

This is now live on this server. Notably, application help menus now show mail command help if the application supports mail commands:

Screen_Shot_2015-04-01_at_12.09.50_PM.png (233×684 px, 46 KB)

Clicking that will take you to a page detailing all available commands and the command syntax.

T7725 is an example task I created on this install by sending this mail to bugs@phabricator.com:

!assign chad
!projects #metamta
!subscribe btrahan
!priority high

such commands