Page MenuHomePhabricator

Add "View Email" action to application transactions
ClosedPublic

Authored by btrahan on Aug 12 2014, 9:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 5:38 PM
Unknown Object (File)
Mon, Dec 9, 4:32 AM
Unknown Object (File)
Thu, Dec 5, 9:02 AM
Unknown Object (File)
Thu, Dec 5, 4:01 AM
Unknown Object (File)
Tue, Dec 3, 9:48 PM
Unknown Object (File)
Tue, Dec 3, 9:48 PM
Unknown Object (File)
Tue, Dec 3, 9:48 PM
Unknown Object (File)
Tue, Dec 3, 9:48 PM
Subscribers

Details

Summary

Should help with debugging. In the web UI there is now a link to "View Email". This uses the same debugging output that ./bin/mail show-outbound uses. Fixes T5768. Code is very defensive as I think these tables may be truncated eventually?

Test Plan

viewed some emails and it worked!

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Add "View Email" action to application transactions.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

We can't show all the debugging information: the "To" address sometimes contains a per-user secret hash which allows other users to spoof them.

Let's just show the text body, and a message like "for full details, run bin/mail show-inbound --id XYZ"?

src/view/phui/PHUITimelineEventView.php
548–550

This will issue a bunch of queries when viewing a page with a lot of comments -- let's just trust that it exists, and check when someone actually clicks through?

This revision now requires changes to proceed.Aug 12 2014, 9:06 PM
btrahan edited edge metadata.

changes as requested... thanks!

epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 13 2014, 12:31 AM
btrahan updated this revision to Diff 24722.

Closed by commit rPea3aeb49623b (authored by @btrahan).