Page MenuHomePhabricator

MetaMTA - more progress to mail app
ClosedPublic

Authored by btrahan on Jun 23 2015, 7:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 6:00 AM
Unknown Object (File)
Sun, Dec 8, 4:34 PM
Unknown Object (File)
Sat, Dec 7, 4:05 PM
Unknown Object (File)
Sun, Dec 1, 7:45 AM
Unknown Object (File)
Tue, Nov 26, 7:57 PM
Unknown Object (File)
Fri, Nov 22, 4:50 AM
Unknown Object (File)
Nov 18 2024, 4:48 PM
Unknown Object (File)
Nov 14 2024, 6:52 AM
Subscribers

Details

Summary

Ref T5791. This diff adds a "sensitive" flag to PhabricatorMetaMTAMail, defaults it to true in the constructor, and then sets it to false in teh application transaction editor. Assumption here is that sensitive emails are basically all the emails that don't flow through the application transaction editor.

This diff also gets a basic "mail view" page up and going.

This diff also fixes a bug writing recipient edges; the actor was being included.

This bug also fixes a querying bug; we shouldn't do the automagic join of $viewer is recipient or $viewer is actor if folks are querying for recipients or actors already. The bug manifested itself as having the "inbox" be inbox + outbox.

Test Plan

viewd list of messages. viewed message detail.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to MetaMTA - more progress to mail app.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

We may eventually want to do the join twice and potentially end up with something like this:

LEFT JOIN edge viewer_recipient ON ...
JOIN edge query_recipient ON ...
(authorPHID = you OR viewer_recipient.dst = you) AND authorPHID in (%Ls) AND query_recipient.dst IN (%Ls)

But that would only matter for performance (more filtering in SQL instead of PHP) which might never really be an issue. I don't anticipate this UI getting enormous amounts of use.

This revision is now accepted and ready to land.Jun 23 2015, 7:44 PM
This revision was automatically updated to reflect the committed changes.