Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix and implement hotfix for incorrect truncationsize defaults.
Bug: 13711
  • Loading branch information
mrubinsk committed Nov 25, 2014
1 parent 06bfbe1 commit c2e1218
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -1057,8 +1057,14 @@ protected function _buildMailMessage(
$airsync_body->type = Horde_ActiveSync::BODYPREF_TYPE_MIME;

// MIME Truncation
$mime_truncation = isset($options['bodyprefs'][Horde_ActiveSync::BODYPREF_TYPE_MIME]['truncationsize'])
// @todo Remove this sanity-check hack in 3.0. This is needed
// since truncationsize incorrectly defaulted to a
// MIME_TRUNCATION constant and could be cached in the sync-cache.
$ts = !empty($options['bodyprefs'][Horde_ActiveSync::BODYPREF_TYPE_MIME]['truncationsize'])
? $options['bodyprefs'][Horde_ActiveSync::BODYPREF_TYPE_MIME]['truncationsize']
: false;
$mime_truncation = (!empty($ts) && $ts > 9)
? $ts
: $options['truncation'];

$this->_logger->info(sprintf(
Expand Down

0 comments on commit c2e1218

Please sign in to comment.