Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(360)

Unified Diff: Source/AppleMailItemsController.m

Issue 706041: Skip inserting external parts into Mail.app messages if they're too big Base URL: http://google-email-uploader-mac.googlecode.com/svn/trunk/
Patch Set: Created 15 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/AppleMailItemsController.m
===================================================================
--- Source/AppleMailItemsController.m (revision 24)
+++ Source/AppleMailItemsController.m (working copy)
@@ -702,7 +702,8 @@
encoding:NSUTF8StringEncoding
error:&error] autorelease];
unsigned int partFileLen = [fileContents length];
- if (partFileLen > 0) {
+ if (partFileLen > 0
+ && ([emlxString length] + partFileLen) < kMaxMesssageSize) {
// insert the emlxpart as the body of the part's message
// (following the part's header and extra newline)
[emlxString insertString:fileContents
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b