Page MenuHomePhabricator

D13410.diff
No OneTemporary

D13410.diff

diff --git a/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php b/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
--- a/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
+++ b/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
@@ -49,6 +49,26 @@
->setUser($viewer)
->setObject($mail);
+ $properties->addProperty(
+ pht('ID'),
+ $mail->getID());
+
+ $properties->addProperty(
+ pht('Status'),
+ $mail->getStatus());
+
+ if ($mail->getMessage()) {
+ $properties->addProperty(
+ pht('Status Details'),
+ $mail->getMessage());
+ }
+
+ if ($mail->getRelatedPHID()) {
+ $properties->addProperty(
+ pht('Related Object'),
+ $viewer->renderHandle($mail->getRelatedPHID()));
+ }
+
if ($mail->getActorPHID()) {
$actor_str = $viewer->renderHandle($mail->getActorPHID());
} else {
diff --git a/src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php b/src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php
--- a/src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php
+++ b/src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php
@@ -101,18 +101,16 @@
foreach ($mails as $mail) {
if ($mail->hasSensitiveContent()) {
- $header = pht(
- 'Mail %d: < content redacted >',
- $mail->getID());
+ $header = pht('< content redacted >');
} else {
- $header = pht(
- 'Mail %d: %s',
- $mail->getID(),
- $mail->getSubject());
+ $header = $mail->getSubject();
}
$item = id(new PHUIObjectItemView())
+ ->setUser($viewer)
->setObject($mail)
+ ->setEpoch($mail->getDateCreated())
+ ->setObjectName('Mail '.$mail->getID())
->setHeader($header)
->setHref($this->getURI('detail/'.$mail->getID()));
$list->addItem($item);

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 7:07 PM (19 h, 15 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6911721
Default Alt Text
D13410.diff (1 KB)

Event Timeline