Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15434813
D18598.id44657.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18598.id44657.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -766,10 +766,14 @@
}
if ($config_attach) {
- $name = pht('D%s.%s.patch', $object->getID(), $diff->getID());
- $mime_type = 'text/x-patch; charset=utf-8';
- $body->addAttachment(
- new PhabricatorMetaMTAAttachment($patch, $name, $mime_type));
+ // See T12033, T11767, and PHI55. This is a crude fix to stop the
+ // major concrete problems that lackluster email size limits cause.
+ if (strlen($patch) < $body_limit) {
+ $name = pht('D%s.%s.patch', $object->getID(), $diff->getID());
+ $mime_type = 'text/x-patch; charset=utf-8';
+ $body->addAttachment(
+ new PhabricatorMetaMTAAttachment($patch, $name, $mime_type));
+ }
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 26, 5:36 AM (1 w, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7228596
Default Alt Text
D18598.id44657.diff (1 KB)
Attached To
Mode
D18598: Stop the bleeding caused by attaching enormous patches to revision mail
Attached
Detach File
Event Timeline
Log In to Comment