public function getMimePart($id, array $options = array())
{
$part = $this->basePart->getPart($id);
if ($part && strcasecmp($part->getCharset(), 'ISO-8859-1') === 0) {
$part->setCharset('windows-1252');
}
if (!empty($id) && !is_null($part) && substr($id, -2) != '.0' && empty($options['nocontents']) && !$part->getContents(array('stream' => true))) {
$body = $this->getBodyPart($id, array('decode' => true, 'length' => empty($options['length']) ? null : $options['length'], 'stream' => true));
$part->setContents($body, array('encoding' => $this->_lastBodyPartDecode, 'usestream' => true));
}
return $part;
}