Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14727792
D13451.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1007 B
Referenced Files
None
Subscribers
None
D13451.diff
View Options
diff --git a/src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php b/src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php
--- a/src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php
+++ b/src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php
@@ -30,8 +30,14 @@
$targets = id(new PhabricatorRepositoryPushReplyHandler())
->setMailReceiver($repository)
->getMailTargets($email_phids, array());
+
+ $messages = array();
foreach ($targets as $target) {
- $this->sendMail($target, $repository, $event);
+ $messages[] = $this->sendMail($target, $repository, $event);
+ }
+
+ foreach ($messages as $message) {
+ $message->save();
}
}
@@ -121,7 +127,7 @@
->addHeader('Thread-Topic', $subject)
->setIsBulk(true);
- $target->sendMail($mail);
+ return $target->willSendMail($mail);
}
public function renderForDisplay(PhabricatorUser $viewer) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 4:51 AM (20 h, 47 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7017566
Default Alt Text
D13451.diff (1007 B)
Attached To
Mode
D13451: Do all push mail in a bunch at the end, too
Attached
Detach File
Event Timeline
Log In to Comment