Changeset 3efc746 in github
- Timestamp:
- Jul 9, 2012 6:19:38 AM (10 months ago)
- Children:
- 2b21b97
- Parents:
- 98d0960
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_message.php (modified) (1 diff)
-
program/steps/mail/compose.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r7794ae1 r3efc746 2 2 =========================== 3 3 4 - Don't add attachments content into reply/forward/draft message body (#1488557) 4 5 - Fix 'no connection' errors on page unloads (#1488547) 5 6 - Plugin API: Add 'unauthenticated' hook (#1488138) -
program/include/rcube_message.php
r041c93c r3efc746 278 278 279 279 /** 280 * Checks if part of the message is an attachment (or part of it) 281 * 282 * @param rcube_message_part $part Message part 283 * 284 * @return bool True if the part is an attachment part 285 */ 286 public function is_attachment($part) 287 { 288 foreach ($this->attachments as $att_part) { 289 if ($att_part->mime_id == $part->mime_id) { 290 return true; 291 } 292 293 // check if the part is a subpart of another attachment part (message/rfc822) 294 if ($att_part->mimetype == 'message/rfc822') { 295 if (in_array($part, (array)$att_part->parts)) { 296 return true; 297 } 298 } 299 } 300 301 return false; 302 } 303 304 305 /** 280 306 * Read the message structure returend by the IMAP server 281 307 * and build flat lists of content parts and attachments -
program/steps/mail/compose.inc
rae6d2de r3efc746 630 630 if (!empty($MESSAGE->parts)) { 631 631 foreach ($MESSAGE->parts as $part) { 632 if ($part->type != 'content' || !$part->size) { 632 // skip no-content and attachment parts (#1488557) 633 if ($part->type != 'content' || !$part->size || $MESSAGE->is_attachment($part)) { 633 634 continue; 634 635 }
Note: See TracChangeset
for help on using the changeset viewer.
