Skip to content

Commit

Permalink
Revert "Horde_Stream#getString() does not work the way I thought."
Browse files Browse the repository at this point in the history
This reverts commit 05f0c89.
  • Loading branch information
mrubinsk committed Oct 1, 2013
1 parent 686096a commit e389692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -1015,7 +1015,7 @@ protected function _buildMailMessage(
// Preview?
if ($version >= Horde_ActiveSync::VERSION_FOURTEEN && !empty($options['bodyprefs']['preview'])) {
$eas_message->airsyncbasebody->preview =
$message_body_data['plain']['body']->read($options['bodyprefs']['preview'], true);
$message_body_data['plain']['body']->getString(0, $options['bodyprefs']['preview']);
}

// Check for special message types.
Expand Down
3 changes: 2 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Rfc822.php
Expand Up @@ -105,7 +105,8 @@ public function getString()
*/
public function getHeaders()
{
$hdr_text = $this->_stream->read($this->_hdr_pos, true);
$this->_stream->rewind();
$hdr_text = $this->_stream->getString(null, $this->_hdr_pos);
return Horde_Mime_Headers::parseHeaders($hdr_text);
}

Expand Down

0 comments on commit e389692

Please sign in to comment.