Page MenuHomePhabricator

Implement Schema.org call for action markup to emails
Closed, DuplicatePublic

Description

Gmail allows to adds call for actions in messages. They are shown at the right of the message line in the inbox.

GitHub recently added View Issue, View Commit and View Pull Resquest actions for example.

It uses a standard format, describable as microdata. Yet, I'm unaware of implementation in other mail clients.

Interest: Often, a mail is mainly a notification call see this URL. In such cases, we can provide a clear button linking to this URL.

Cost: It becomes more complex to send a mail, as mails become multipart, text/plain for the actual mail, an HTML copy to display the action

Impact: average to high, considering Gmail and Google for Applications market share.

Suggested roadmap:

  • Adds code in Remarkup to offer a plain text output capability
  • Use Remarkup for outgoiing mail messages
  • Create new classes to represent a multipart text / HTML with action message

Example of action code:

<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://secure.phabricator.com/T6237" />
    <meta itemprop="name" content="View task" />
  </div>
  <meta itemprop="description" content="T6237 - Use ApplicationTransactions properly in Diff creation" />
</div>

Event Timeline

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

I don't like the cost to have to add an HTML counterpart to the mail. Even if Gmail will print plain text mail if such preference has been set (I receive my GitHub mails as text) and will still add the notification from the HTML part, it's like an hack. So I'm rather reluctant to the feature.

If this cost is deemed acceptable, I'm volunteer to implement that.

Well, actually, PhabricatorMetaMTAMail already implements an HTML view.

Allow rendering Remarkup to text done in D5365.

At this stage, we have virtually all the prerequisites to implement the feature.

@dereckson Google has to whitelist your site for this, specifically. It is likely we'll pursue it as part of Phacility once that gains traction, and it'll be in the codebase, but you'd likely not be able to pursue it for local installs.

@chad I have been more interested by this feature for large open source projects Phabricator instances like the Wikimedia, Blender or FreeBSD ones than for local installs (as they don't met the hundred mails per day volume criteria).