@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Minor tweaks to `bin/mail send-test`

Summary: Clean up some arg handling stuff.

Test Plan: Used this while debugging.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D10314

+11 -1
+11 -1
src/applications/metamta/management/PhabricatorMailManagementSendTestWorkflow.php
··· 79 79 $tos = $args->getArg('to'); 80 80 $ccs = $args->getArg('cc'); 81 81 82 + if (!$tos && !$ccs) { 83 + throw new PhutilArgumentUsageException( 84 + pht( 85 + 'Specify one or more users to send mail to with `--to` and '. 86 + '`--cc`.')); 87 + } 88 + 82 89 $names = array_merge($tos, $ccs); 83 90 $users = id(new PhabricatorPeopleQuery()) 84 91 ->setViewer($viewer) ··· 103 110 } 104 111 105 112 $subject = $args->getArg('subject'); 113 + if ($subject === null) { 114 + $subject = pht('No Subject'); 115 + } 116 + 106 117 $tags = $args->getArg('tag'); 107 118 $attach = $args->getArg('attach'); 108 119 $is_bulk = $args->getArg('bulk'); 109 120 110 121 $console->writeErr("%s\n", pht('Reading message body from stdin...')); 111 122 $body = file_get_contents('php://stdin'); 112 - 113 123 114 124 $mail = id(new PhabricatorMetaMTAMail()) 115 125 ->addTos($tos)