Differential D19993 Diff 47731 src/applications/differential/mail/DifferentialCreateMailReceiver.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/mail/DifferentialCreateMailReceiver.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | if ($body) { | ||||
$diffs[pht('Mail Body')] = $result['uri']; | $diffs[pht('Mail Body')] = $result['uri']; | ||||
} catch (Exception $e) { | } catch (Exception $e) { | ||||
$errors[] = pht( | $errors[] = pht( | ||||
'Could not parse mail body; only mail bodies (and attachments) '. | 'Could not parse mail body; only mail bodies (and attachments) '. | ||||
'generated via "diff" commands can be parsed.'); | 'generated via "diff" commands can be parsed.'); | ||||
} | } | ||||
} | } | ||||
$subject_prefix = | $subject_prefix = pht('[Differential]'); | ||||
PhabricatorEnv::getEnvConfig('metamta.differential.subject-prefix'); | |||||
if (count($diffs)) { | if (count($diffs)) { | ||||
$subject = pht( | $subject = pht( | ||||
'You successfully created %d diff(s).', | 'You successfully created %d diff(s).', | ||||
count($diffs)); | count($diffs)); | ||||
} else { | } else { | ||||
$subject = pht( | $subject = pht( | ||||
'Diff creation failed; see body for %s error(s).', | 'Diff creation failed; see body for %s error(s).', | ||||
phutil_count($errors)); | phutil_count($errors)); | ||||
Show All 40 Lines |