@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.

Fix a small inbound email glitch

Summary:
Sendmail isn't actually OK with passing ENV stuff via 'aliases', accept it as an
argument instead.

Test Plan:
Sent real email to a real server, got differential updates!

Reviewed By: jungejason
Reviewers: jungejason, tuomaspelkonen, aran
CC: aran, jungejason
Differential Revision: 233

+8 -2
+3 -1
scripts/__init_env__.php
··· 21 21 22 22 require_once dirname(dirname(__FILE__)).'/conf/__init_conf__.php'; 23 23 24 - $env = getenv('PHABRICATOR_ENV'); 24 + $env = isset($_SERVER['PHABRICATOR_ENV']) 25 + ? $_SERVER['PHABRICATOR_ENV'] 26 + : getenv('PHABRICATOR_ENV'); 25 27 if (!$env) { 26 28 echo "Define PHABRICATOR_ENV before running this script.\n"; 27 29 exit(1);
+4
scripts/mail/mail_handler.php
··· 17 17 * limitations under the License. 18 18 */ 19 19 20 + if ($argc > 1) { 21 + $_SERVER['PHABRICATOR_ENV'] = $argv[1]; 22 + } 23 + 20 24 $root = dirname(dirname(dirname(__FILE__))); 21 25 require_once $root.'/scripts/__init_script__.php'; 22 26 require_once $root.'/scripts/__init_env__.php';
+1 -1
src/docs/configuring_inbound_email.diviner
··· 47 47 Now, you can actually configure sendmail to deliver to Phabricator. In 48 48 ##/etc/aliases##, add an entry like this: 49 49 50 - phabricator: "| PHABRICATOR_ENV=<ENV> /path/to/phabricator/scripts/mail/mail_handler.php" 50 + phabricator: "| /path/to/phabricator/scripts/mail/mail_handler.php <ENV>" 51 51 52 52 ...where <ENV> is the PHABRICATOR_ENV the script should run under. Run 53 53 ##sudo newaliases##. Now you likely need to symlink this script into